diff options
author | Erich Eckner <git@eckner.net> | 2016-04-21 00:33:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-21 00:33:42 +0200 |
commit | a51aba69515d3d634b6cbd6494a3e67a29620206 (patch) | |
tree | 36db6b12837b5fc57c3a3d20e395c4d12ffff249 /perl-test-use-ok | |
parent | 00226c8f0876e04496126df21bfea45ecac05336 (diff) | |
download | archlinuxewe-a51aba69515d3d634b6cbd6494a3e67a29620206.tar.xz |
perl-test-use-ok neu
Diffstat (limited to 'perl-test-use-ok')
-rw-r--r-- | perl-test-use-ok/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/perl-test-use-ok/PKGBUILD b/perl-test-use-ok/PKGBUILD new file mode 100644 index 000000000..4f38ac8b2 --- /dev/null +++ b/perl-test-use-ok/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname='perl-test-use-ok' +_realname='Test-use-ok' +pkgver='0.11' +pkgrel=2 +pkgdesc="Alternative to Test::More::use_ok" +arch=('any') +license=('perl') +url="http://search.cpan.org/~audreyt/Test-use-ok" +options=(!emptydirs) + +depends=('perl>=5.8.9') + +provides=('test-use-ok=0.11' 'ok=0.11' 'perl-ok=0.11' 'Test::use::ok=0.11' 'perl-test-use-ok=0.11') + +source=("http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/${_realname}-${pkgver}.tar.gz") +sha512sums=('ff831546c7a34edfd1a9e574300f6b299fa280ea7d3be6b3285cf173f8695d2dc51a302954dae95d2b1bb5c3f1b945081a06dc703c465ac0d4e229ce81d45293') + +build() { +cd "$_realname-$pkgver" +# install module in vendor directories. +export PERL_MM_USE_DEFAULT=1 +perl Makefile.PL +make +} +package() { +cd "$_realname-$pkgver" +make install INSTALLDIRS=vendor DESTDIR=${pkgdir} + +# remove perllocal.pod and .packlist +find ${pkgdir} -name perllocal.pod -delete +find ${pkgdir} -name .packlist -delete +} |