aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-boolean
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-boolean')
-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
}