aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-class-c3
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-27 23:11:34 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-27 23:11:34 -0300
commit03df114faf08214114c2f6fb73f2462a678094db (patch)
tree75fb48b6d40b501973bf967dc782efcf5bd6a0a8 /testing/perl-class-c3
parentc6a025c993d59bd20ebc2413c9f2d92d43e4a4e4 (diff)
downloadaports-03df114faf08214114c2f6fb73f2462a678094db.tar.bz2
aports-03df114faf08214114c2f6fb73f2462a678094db.tar.xz
testing/perl-class-c3: fix url fix license
Diffstat (limited to 'testing/perl-class-c3')
-rw-r--r--testing/perl-class-c3/APKBUILD19
1 files changed, 6 insertions, 13 deletions
diff --git a/testing/perl-class-c3/APKBUILD b/testing/perl-class-c3/APKBUILD
index 6c45129a8c..eca8db337e 100644
--- a/testing/perl-class-c3/APKBUILD
+++ b/testing/perl-class-c3/APKBUILD
@@ -4,43 +4,36 @@
pkgname=perl-class-c3
_pkgreal=Class-C3
pkgver=0.33
-pkgrel=0
+pkgrel=1
pkgdesc="A pragma to use the C3 method resolution order algorithm"
-url="http://search.cpan.org/dist/Class-C3/"
+url="https://metacpan.org/release/Class-C3"
arch="noarch"
-license="GPL PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-algorithm-c3"
-cpanmakedepends=""
-cpancheckdepends=""
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-checkdepends="$cpancheckdepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
- 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}')
make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}