diff options
author | root <root@rshg054.dnsready.net> | 2012-01-08 23:14:45 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-08 23:14:45 +0000 |
commit | 46783b68621b6ad45cdd9ed64cfa8cdcfbc6f318 (patch) | |
tree | eb2bd0aa427b4ad1659249fa8b86467dcd68e0dc /extra/perl-async-interrupt/PKGBUILD | |
parent | 6aeb515f4afd10afb53b21df18d03b0d5f3a200f (diff) |
Sun Jan 8 23:14:45 UTC 2012
Diffstat (limited to 'extra/perl-async-interrupt/PKGBUILD')
-rw-r--r-- | extra/perl-async-interrupt/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/extra/perl-async-interrupt/PKGBUILD b/extra/perl-async-interrupt/PKGBUILD new file mode 100644 index 000000000..33fa2afb4 --- /dev/null +++ b/extra/perl-async-interrupt/PKGBUILD @@ -0,0 +1,48 @@ +# Packager: Justin Davis <jrcd83@gmail.com> +# $Id: PKGBUILD 146271 2012-01-07 18:45:53Z juster $ + +pkgname=perl-async-interrupt +pkgver=1.05 +pkgrel=1 +pkgdesc="allow C/XS libraries to interrupt perl asynchronously" +arch=(i686 x86_64) +license=(PerlArtistic GPL) +options=(!emptydirs) +depends=('perl-common-sense') +url=https://metacpan.org/release/Async-Interrupt +source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Async-Interrupt-${pkgver}.tar.gz") +md5sums=(48efb6982dab8d33241061dba65776a8) +sha512sums=(8b7c74f03b36e1d0ab40124a36c073daa06ea68d6087d809f5c9d60ca07a14505d67599f24d73f1ec5eb13259a732b0c67a07a2fff47f35e04c6b8a50c526d91) +_distdir="${srcdir}/Async-Interrupt-${pkgver}" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + cd "$_distdir" + make test + ) +} + +package() { + cd "$_distdir" + make DESTDIR="$pkgdir" install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |