diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 00:57:23 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-28 00:57:23 -0300 |
commit | c1eaa27e504bb621a263db6bbed091fc7e47e95c (patch) | |
tree | d05a37354cc58ad6345130c77bc15a9c9b6cbe77 | |
parent | 1a382e1dad812656b13df465b5171ce4a37c5122 (diff) | |
download | aports-c1eaa27e504bb621a263db6bbed091fc7e47e95c.tar.bz2 aports-c1eaa27e504bb621a263db6bbed091fc7e47e95c.tar.xz |
testing/perl-devel-leak: fix url fix license
-rw-r--r-- | testing/perl-devel-leak/APKBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/testing/perl-devel-leak/APKBUILD b/testing/perl-devel-leak/APKBUILD index 982e4dcd62..54370f2002 100644 --- a/testing/perl-devel-leak/APKBUILD +++ b/testing/perl-devel-leak/APKBUILD @@ -3,35 +3,33 @@ pkgname=perl-devel-leak _pkgreal=Devel-Leak pkgver=0.03 -pkgrel=5 +pkgrel=6 pkgdesc="Utility for looking for perl objects that are not reclaimed" -url="http://search.cpan.org/dist/Devel-Leak/" +url="https://metacpan.org/release/Devel-Leak" arch="all" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NI/NI-S/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +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}'` - make && make test + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +check() { + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |