summaryrefslogtreecommitdiff
path: root/community/perl-gtk2-unique/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-gtk2-unique/PKGBUILD')
-rw-r--r--community/perl-gtk2-unique/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/perl-gtk2-unique/PKGBUILD b/community/perl-gtk2-unique/PKGBUILD
new file mode 100644
index 000000000..073000b78
--- /dev/null
+++ b/community/perl-gtk2-unique/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 116149 2014-07-23 09:36:32Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Brian Bidulock <bidulock@openss7.org>
+
+pkgname=perl-gtk2-unique
+_realname=Gtk2-Unique
+pkgver=0.05
+pkgrel=10
+pkgdesc="Perl bindings for the C library libunique"
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/${_realname}"
+license=('LGPL' 'PerlArtistic')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+depends=('gtk2-perl' 'libunique')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/${_realname}-${pkgver}.tar.gz"
+ "$pkgname.patch")
+md5sums=('0beb552933b765a017588563a71af123'
+ 'f8e15e1b93e2629e1745f8e4de8524ff')
+
+build() {
+ cd "$srcdir/$_realname-$pkgver"
+ patch -Np1 -i "$srcdir/$pkgname.patch"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$srcdir/$_realname-$pkgver"
+ make test
+}
+
+package() {
+ cd "$srcdir/$_realname-$pkgver"
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+}