diff options
author | root <root@rshg054.dnsready.net> | 2011-11-01 23:15:01 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-01 23:15:01 +0000 |
commit | 37a1064b8105764414f279ced442e6ba2f63bea1 (patch) | |
tree | 173b87cd6535e622eff464080b398e0330df72bc /community/perl-package-stash-xs/PKGBUILD | |
parent | 560562e36a27da267f2f4f7989806790192888ef (diff) |
Tue Nov 1 23:15:01 UTC 2011
Diffstat (limited to 'community/perl-package-stash-xs/PKGBUILD')
-rw-r--r-- | community/perl-package-stash-xs/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/perl-package-stash-xs/PKGBUILD b/community/perl-package-stash-xs/PKGBUILD new file mode 100644 index 000000000..40dd20936 --- /dev/null +++ b/community/perl-package-stash-xs/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Justin Davis <jrcd83@gmail.com> +# $Id: PKGBUILD 57660 2011-11-01 00:16:28Z juster $ + +pkgname=perl-package-stash-xs +pkgver=0.25 +pkgrel=1 +pkgdesc="faster and more correct implementation of the Package::Stash API" +arch=(i686 x86_64) +license=(PerlArtistic GPL) +options=(!emptydirs) +depends=('perl>=5.8.1') +makedepends=('perl-extutils-makemaker>=6.30') +checkdepends=('perl-test-fatal' 'perl-test-simple') +url=https://metacpan.org/release/Package-Stash-XS +source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-${pkgver}.tar.gz") +md5sums=(52ece18842c46da8fb7a4a14dea910ab) +sha512sums=(2b539d9ba1a68c5ba681e9eabbcde4b396f66dc8dbd3b1e333286ea7ce39b93b97ec4bd97c31681720a925553b128371ce2c48f11254806aebd5de868a22b528) +_distdir="${srcdir}/Package-Stash-XS-${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: |