diff options
author | Brian Bidulock | 2015-07-07 20:24:17 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-07-07 20:24:17 -0600 |
commit | 63b599fd26ba5853617808060c0f3178dde3a45a (patch) | |
tree | 3043fb1996c08e691f2ce6a35983767a2828c081 | |
parent | 69b4a9d90fab1d0d6f9031b4bb0bdb170ce9b015 (diff) | |
download | aur-63b599fd26ba5853617808060c0f3178dde3a45a.tar.gz |
version 0.05-12
- added support for get_closed_reason
- move build dependencies to makedepends
- picked one of md5sums or sha1sums
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | libnotify.patch | 29 |
3 files changed, 43 insertions, 28 deletions
@@ -1,21 +1,20 @@ pkgbase = perl-gtk2-notify pkgdesc = Perl interface to libnotify pkgver = 0.05 - pkgrel = 11 + pkgrel = 12 url = http://search.cpan.org/perldoc?Gtk2::Notify arch = i686 arch = x86_64 license = LGPL + makedepends = perl-extutils-pkgconfig + makedepends = perl-extutils-depends depends = gtk2-perl depends = libnotify - depends = perl-extutils-pkgconfig - depends = perl-extutils-depends + options = !emptydirs source = http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Gtk2-Notify-0.05.tar.gz source = libnotify.patch md5sums = 071144ad4a5670b8b2451baf358c4a88 - md5sums = 39d193a18df5d75ddc79d4c2333c4760 - sha1sums = b0223dd5a85358c9b92ebc99040201e640612348 - sha1sums = 55a8c591a4d3c3fb1d23a2c949d52e204f04350f + md5sums = c54d841861c9adfaa77b80bdf9cb0f98 pkgname = perl-gtk2-notify @@ -2,26 +2,31 @@ # Contributor: Brian Bidulock <bidulock@openss7.org> pkgname=perl-gtk2-notify +_cpanname=Gtk2-Notify pkgver=0.05 -pkgrel=11 +pkgrel=12 pkgdesc="Perl interface to libnotify" arch=('i686' 'x86_64') url="http://search.cpan.org/perldoc?Gtk2::Notify" license=('LGPL') -depends=('gtk2-perl' 'libnotify' 'perl-extutils-pkgconfig' -'perl-extutils-depends') -source=(http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Gtk2-Notify-$pkgver.tar.gz libnotify.patch) -md5sums=('071144ad4a5670b8b2451baf358c4a88' '39d193a18df5d75ddc79d4c2333c4760') -sha1sums=('b0223dd5a85358c9b92ebc99040201e640612348' '55a8c591a4d3c3fb1d23a2c949d52e204f04350f') +depends=('gtk2-perl' 'libnotify') +makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/$_cpanname-$pkgver.tar.gz" + "libnotify.patch") +md5sums=('071144ad4a5670b8b2451baf358c4a88' + 'c54d841861c9adfaa77b80bdf9cb0f98') +prepare() { + cd $_cpanname-$pkgver + patch -Np2 -b -z .orig <../libnotify.patch +} build() { - cd "$srcdir" - patch -p 0 <libnotify.patch - cd "$srcdir/Gtk2-Notify-$pkgver" - perl Makefile.PL INSTALLDIRS=vendor - make || return 1 + cd $_cpanname-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make } package() { - cd "$srcdir/Gtk2-Notify-$pkgver" - make DESTDIR=$pkgdir install || return 1 + cd $_cpanname-$pkgver + make DESTDIR="$pkgdir" install } diff --git a/libnotify.patch b/libnotify.patch index 49ab8e2cf23e..f7705004f04d 100644 --- a/libnotify.patch +++ b/libnotify.patch @@ -1,6 +1,6 @@ -diff -upr Gtk2-Notify-0.05.orig/lib/Gtk2/Notify.pm Gtk2-Notify-0.05/lib/Gtk2/Notify.pm ---- Gtk2-Notify-0.05.orig/lib/Gtk2/Notify.pm 2008-11-11 23:47:33.000000000 -0700 -+++ Gtk2-Notify-0.05/lib/Gtk2/Notify.pm 2013-02-22 06:43:03.000000000 -0700 +diff -up src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm.orig src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm +--- src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm.orig 2008-11-11 23:47:33.000000000 -0700 ++++ src/Gtk2-Notify-0.05/lib/Gtk2/Notify.pm 2015-07-07 20:02:12.000000000 -0600 @@ -47,7 +47,7 @@ Version 0.04 use Gtk2::Notify -init, "app_name"; @@ -10,9 +10,9 @@ diff -upr Gtk2-Notify-0.05.orig/lib/Gtk2/Notify.pm Gtk2-Notify-0.05/lib/Gtk2/Not $notification->show; =head1 INITIALISATION -diff -upr Gtk2-Notify-0.05.orig/t/notification.t Gtk2-Notify-0.05/t/notification.t ---- Gtk2-Notify-0.05.orig/t/notification.t 2006-08-27 13:11:57.000000000 -0600 -+++ Gtk2-Notify-0.05/t/notification.t 2013-02-22 06:49:35.000000000 -0700 +diff -up src/Gtk2-Notify-0.05/t/notification.t.orig src/Gtk2-Notify-0.05/t/notification.t +--- src/Gtk2-Notify-0.05/t/notification.t.orig 2006-08-27 13:11:57.000000000 -0600 ++++ src/Gtk2-Notify-0.05/t/notification.t 2015-07-07 20:09:52.000000000 -0600 @@ -2,20 +2,18 @@ use strict; @@ -66,9 +66,9 @@ diff -upr Gtk2-Notify-0.05.orig/t/notification.t Gtk2-Notify-0.05/t/notification $n->show; }, 'show'); -diff -upr Gtk2-Notify-0.05.orig/xs/Notify.xs Gtk2-Notify-0.05/xs/Notify.xs ---- Gtk2-Notify-0.05.orig/xs/Notify.xs 2007-10-04 06:11:13.000000000 -0600 -+++ Gtk2-Notify-0.05/xs/Notify.xs 2013-02-22 06:47:46.000000000 -0700 +diff -up src/Gtk2-Notify-0.05/xs/Notify.xs.orig src/Gtk2-Notify-0.05/xs/Notify.xs +--- src/Gtk2-Notify-0.05/xs/Notify.xs.orig 2007-10-04 06:11:13.000000000 -0600 ++++ src/Gtk2-Notify-0.05/xs/Notify.xs 2015-07-07 20:05:37.000000000 -0600 @@ -21,8 +21,7 @@ PROTOTYPES: DISABLE my $notification = Gtk2::Notify->new( $summary, @@ -148,3 +148,14 @@ diff -upr Gtk2-Notify-0.05.orig/xs/Notify.xs Gtk2-Notify-0.05/xs/Notify.xs set_hint (notification, key, value) NotifyNotification *notification const gchar *key +@@ -265,6 +234,10 @@ notify_notification_close (notification) + gperl_croak_gerror (NULL, error); + } + ++gint ++notify_notification_get_closed_reason(notification) ++ NotifyNotification *notification ++ + BOOT: + #include "register.xsh" + #include "boot.xsh" |