summaryrefslogtreecommitdiff
path: root/p5-gtk2-notify/Pkgfile
blob: 4d2fe6d1520feef3321d6f89511a85af3c88b399 (plain)
    1 # Description:  Perl interface to libnotify
    2 # URL:          https://metacpan.org/pod/Gtk2::Notify
    3 # Maintainer:   Alexandr Savca, alexandr dot savca89 at gmail dot com
    4 # Depends on:   dbus libnotify p5-gtk2 p5-net-dbus
    5 
    6 name=p5-gtk2-notify
    7 version=0.05
    8 release=1
    9 source=(https://cpan.metacpan.org/authors/id/F/FL/FLORA/Gtk2-Notify-$version.tar.gz
   10         libnotify.patch.gz makefile.patch.gz)
   11 
   12 build() {
   13         cd Gtk2-Notify-$version
   14 
   15         gunzip -c $SRC/libnotify.patch.gz | patch -p0
   16         gunzip -c $SRC/makefile.patch.gz  | patch -p1
   17 
   18         perl Makefile.PL
   19         make OPTIMIZE="$CFLAGS"
   20         make DESTDIR=$PKG install
   21 
   22         find $PKG -name perllocal.pod   \
   23                 -o -name "*.bs"         \
   24                 -o -name .packlist      \
   25                 -o -name autosplit.ix   \
   26         | xargs rm -f
   27 
   28         find $PKG -depth -type d -empty -delete
   29         find $PKG -type f -a -perm -u-w | xargs chmod u+w
   30 }

Generated by cgit