aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-05 02:48:46 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-06-05 06:34:50 +0000
commitdcf3ede4d00b1f5c46456fca7644f27b408002fd (patch)
treed61596bc1c7b92b6a2af77848ba36fe4bcf7240e
parent299eb6e190d5392d92ed544344f975f6016a655f (diff)
downloadaports-dcf3ede4d00b1f5c46456fca7644f27b408002fd.tar.gz
aports-dcf3ede4d00b1f5c46456fca7644f27b408002fd.tar.bz2
aports-dcf3ede4d00b1f5c46456fca7644f27b408002fd.tar.xz
main/perl-package-anon: modernize, fix license
-rw-r--r--main/perl-package-anon/APKBUILD23
1 files changed, 10 insertions, 13 deletions
diff --git a/main/perl-package-anon/APKBUILD b/main/perl-package-anon/APKBUILD
index 70966a5cae..4c616e2c15 100644
--- a/main/perl-package-anon/APKBUILD
+++ b/main/perl-package-anon/APKBUILD
@@ -4,38 +4,35 @@
pkgname=perl-package-anon
_pkgreal=Package-Anon
pkgver=0.05
-pkgrel=5
+pkgrel=6
pkgdesc="Anonymous packages"
url="http://search.cpan.org/dist/Package-Anon/"
arch="all"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends="perl-sub-exporter perl-sub-exporter "
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+cpanmakedepends="perl-sub-exporter"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AU/AUGGY/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ cd "$builddir"
+ 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}'`
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="06599ea8c760e679dce8ebfb6b6a1edb Package-Anon-0.05.tar.gz"
-sha256sums="15d0285e628a721138bcb1c36dea934379a89fdbc450fd79148e4e37a77241ba Package-Anon-0.05.tar.gz"
sha512sums="73adf4eb8348ad51e678d7d777f7c13599eaaa53e776a35df768ee1afcf781801c980c786c658addad80ae5fe852fefb3600722ea7b02d928653543aa28d9d51 Package-Anon-0.05.tar.gz"