diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:43:08 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:43:08 +0100 |
commit | db6e597452dd6d3c0ae427081edb259195e78110 (patch) | |
tree | 08b9ea4d767fef680cf8c9303b657eca7576cc8b /testing | |
parent | f4dc6de45676e9276084c3d2e4d9161fc31434ac (diff) | |
download | aports-db6e597452dd6d3c0ae427081edb259195e78110.tar.bz2 aports-db6e597452dd6d3c0ae427081edb259195e78110.tar.xz |
testing/perl-test-toolbox: modernize
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-test-toolbox/APKBUILD | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/testing/perl-test-toolbox/APKBUILD b/testing/perl-test-toolbox/APKBUILD index bc474054ed..87a4508ae5 100644 --- a/testing/perl-test-toolbox/APKBUILD +++ b/testing/perl-test-toolbox/APKBUILD @@ -2,37 +2,33 @@ pkgname=perl-test-toolbox _pkgreal=Test-Toolbox pkgver=0.4 -pkgrel=1 +pkgrel=2 pkgdesc="Tools for testing" -url="http://search.cpan.org/dist/Test-Toolbox/" +url="https://metacpan.org/release/Test-Toolbox" arch="noarch" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/MI/MIKO/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/M/MI/MIKO/Test-Toolbox-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { - cd "$builddir" make test } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |