summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-test-requires
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
commit5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch)
treef13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/core/perl_modules/perl-test-requires
parent8d35f28049488f2585ef765bf48e7a58958fd587 (diff)
parent04697136037cb5341ee6c051f8aaa265c0400c82 (diff)
downloadlinhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/perl_modules/perl-test-requires')
-rw-r--r--abs/core/perl_modules/perl-test-requires/PKGBUILD31
1 files changed, 17 insertions, 14 deletions
diff --git a/abs/core/perl_modules/perl-test-requires/PKGBUILD b/abs/core/perl_modules/perl-test-requires/PKGBUILD
index c7de2ab..ac440ad 100644
--- a/abs/core/perl_modules/perl-test-requires/PKGBUILD
+++ b/abs/core/perl_modules/perl-test-requires/PKGBUILD
@@ -1,10 +1,11 @@
# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Justin Davis <jrcd83@gmail.com>
-pkgname='perl-test-requires'
-pkgver='0.06'
-pkgrel='1'
+pkgname=perl-test-requires
+pkgver=0.10
+pkgrel=3
pkgdesc="Checks to see if the module can be loaded"
arch=('any')
license=('PerlArtistic' 'GPL')
@@ -12,18 +13,20 @@ options=('!emptydirs')
depends=('perl')
url='http://search.cpan.org/dist/Test-Requires'
source=("http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-$pkgver.tar.gz")
-md5sums=('6ce0da3cceadb6420d4c3c5bb69f64db')
+md5sums=('0d5da779609d0c8fa6f796b45ff8c6f3')
build() {
- cd "${srcdir}/Test-Requires-$pkgver"
- 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
- perl Makefile.PL
+ cd "$srcdir"/Test-Requires-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor
make
+}
+
+check() {
+ cd "$srcdir"/Test-Requires-$pkgver
make test
- make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+
+package() {
+ cd "$srcdir"/Test-Requires-$pkgver
+ make DESTDIR="$pkgdir"/ install
}