diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:40:45 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:40:45 +0100 |
commit | 2bce0bbe0262f9403c2eaeedf0bf7cf52d3807e1 (patch) | |
tree | 56e20c88468fd7d2086dd485cb18aed6f2a66f4f /community/perl-test-weaken | |
parent | eb97047749a9f0d4a3ccef687c0c49ea1725d5f2 (diff) | |
download | aports-2bce0bbe0262f9403c2eaeedf0bf7cf52d3807e1.tar.bz2 aports-2bce0bbe0262f9403c2eaeedf0bf7cf52d3807e1.tar.xz |
community/perl-test-weaken: modernize
Diffstat (limited to 'community/perl-test-weaken')
-rw-r--r-- | community/perl-test-weaken/APKBUILD | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/community/perl-test-weaken/APKBUILD b/community/perl-test-weaken/APKBUILD index 0dfef30749..4a07e24ee0 100644 --- a/community/perl-test-weaken/APKBUILD +++ b/community/perl-test-weaken/APKBUILD @@ -4,39 +4,33 @@ pkgname=perl-test-weaken _pkgreal=Test-Weaken pkgver=3.022000 -pkgrel=1 +pkgrel=2 pkgdesc="Test that freed memory objects were, indeed, freed" -url="http://search.cpan.org/dist/Test-Weaken/" +url="https://metacpan.org/release/Test-Weaken" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +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/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/Test-Weaken-$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 + make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |