contrib/p5-gtk2-notify/Pkgfile

32 lines
991 B
Plaintext
Raw Normal View History

2018-03-31 21:38:36 +02:00
# Description: Perl interface to libnotify
# URL: https://metacpan.org/pod/Gtk2::Notify
2019-08-30 14:52:34 +02:00
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Packager: Alexandr Savca, alexandr dot savca89 at gmail dot com
# Depends on: libnotify p5-gtk2 p5-net-dbus
2018-03-31 21:38:36 +02:00
name=p5-gtk2-notify
version=0.05
release=1
source=(https://cpan.metacpan.org/authors/id/F/FL/FLORA/Gtk2-Notify-$version.tar.gz
libnotify.patch.gz makefile.patch.gz)
2018-03-31 21:38:36 +02:00
build() {
cd Gtk2-Notify-$version
gunzip -c $SRC/libnotify.patch.gz | patch -p0
gunzip -c $SRC/makefile.patch.gz | patch -p1
2018-03-31 21:38:36 +02:00
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make DESTDIR=$PKG install
find $PKG -name perllocal.pod \
-o -name "*.bs" \
-o -name .packlist \
-o -name autosplit.ix \
| xargs rm -f
find $PKG -depth -type d -empty -delete
find $PKG -type f -a -perm -u-w | xargs chmod u+w
}