diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 31 insertions, 24 deletions
@@ -1,18 +1,19 @@ pkgbase = perl-test-most pkgdesc = Most commonly needed test functions and features pkgver = 0.37 - pkgrel = 2 + pkgrel = 3 url = https://metacpan.org/release/Test-Most arch = any - license = PerlArtistic license = GPL + license = PerlArtistic depends = perl depends = perl-exception-class depends = perl-test-deep depends = perl-test-differences depends = perl-test-exception depends = perl-test-warn - source = https://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Most-0.37.tar.gz + options = !emptydirs + source = https://cpan.perl.org/modules/by-module/Test/Test-Most-0.37.tar.gz sha256sums = 533370141eb9f18cf4ac380f6ded2ab57802a6e184008a80fd2304bfcc474fc7 pkgname = perl-test-most @@ -1,37 +1,43 @@ -# Maintainer: Caleb Maclennan <caleb@alerque.com> +# Maintainer: Caleb Maclennan< caleb@alerque.com> # Contributor: GPP <gergan@gmail.com> -_distname=Test-Most -pkgname=perl-${_distname,,} +_cpan=Test-Most +pkgname=perl-${_cpan,,} pkgver=0.37 -pkgrel=2 +pkgrel=3 pkgdesc='Most commonly needed test functions and features' arch=(any) -url='https://metacpan.org/release/Test-Most' -license=(PerlArtistic GPL) -_perl_deps=(exception-class test-deep test-differences test-exception test-warn) -depends=(perl "${_perl_deps[@]/#/perl-}") -source=("https://search.cpan.org/CPAN/authors/id/O/OV/OVID/$_distname-$pkgver.tar.gz") +url=https://metacpan.org/release/$_cpan +license=(GPL PerlArtistic) +_perldeps=(exception-class + test-deep + test-differences + test-exception + test-warn) +depends=(perl + "${_perldeps[@]/#/perl-}") +options=(!emptydirs) +_archive="$_cpan-$pkgver" +source=("https://cpan.perl.org/modules/by-module/${_cpan%-*}/$_archive.tar.gz") sha256sums=('533370141eb9f18cf4ac380f6ded2ab57802a6e184008a80fd2304bfcc474fc7') build() { - cd "$_distname-$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 - make + cd "$_archive" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + perl Makefile.PL + make } check() { - cd "$_distname-$pkgver" - export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + cd "$_archive" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 make test } package() { - cd "$_distname-$pkgver" - make install - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + cd "$_archive" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" } |