diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-24 03:36:08 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-24 03:36:08 +0000 |
commit | d256eaa80219eb28cbfb4f9474acc6fb41c63d3c (patch) | |
tree | d4752710a1a201081be416a2e43ea85947d67140 /community/perl-gtk2-unique/PKGBUILD | |
parent | ff9e4e102459123bc5bf56965828ebb81081d37f (diff) |
Thu Jul 24 03:31:46 UTC 2014
Diffstat (limited to 'community/perl-gtk2-unique/PKGBUILD')
-rw-r--r-- | community/perl-gtk2-unique/PKGBUILD | 38 |
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 +} |