aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-31 17:09:13 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-31 17:09:13 +0100
commitfc34e396535e384650b2acec8677fcc30dab297f (patch)
tree8ff4cfe51b2c7f6b8a0ce032f7bafb8fa5302045 /main
parent04c5ed5e219e279b9938f1e5d8e3c26531c912ab (diff)
downloadaports-fc34e396535e384650b2acec8677fcc30dab297f.tar.bz2
aports-fc34e396535e384650b2acec8677fcc30dab297f.tar.xz
main/perl-boolean: modernize
Diffstat (limited to 'main')
-rw-r--r--main/perl-boolean/APKBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/main/perl-boolean/APKBUILD b/main/perl-boolean/APKBUILD
index 7b9f7742f7..fe106f98ee 100644
--- a/main/perl-boolean/APKBUILD
+++ b/main/perl-boolean/APKBUILD
@@ -6,33 +6,32 @@ _pkgreal=boolean
pkgver=0.46
pkgrel=0
pkgdesc="Boolean support for Perl"
-url="http://search.cpan.org/dist/boolean/"
+url="https://metacpan.org/release/boolean"
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/I/IN/INGY/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/I/IN/INGY/boolean-$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
}