aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-cidr/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-net-cidr/APKBUILD')
-rw-r--r--main/perl-net-cidr/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/perl-net-cidr/APKBUILD b/main/perl-net-cidr/APKBUILD
index 0cf2c247d7..7cd7c00533 100644
--- a/main/perl-net-cidr/APKBUILD
+++ b/main/perl-net-cidr/APKBUILD
@@ -1,35 +1,36 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-cidr
-_pkgname=Net-CIDR
-pkgver=0.20
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Net-CIDR
+pkgver=0.21
pkgrel=1
pkgdesc="Manipulate IPv4/IPv6 netblocks in CIDR notation"
-url="https://metacpan.org/release/Net-CIDR"
+url="https://metacpan.org/release/Net-CIDR/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
+
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MR/MRSAM/Net-CIDR-$pkgver.tar.gz"
-
-builddir="$srcdir/$_pkgname-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="e00fd79bc21e9e56e74cb8de90372daf12e23a2be9a3cbfe328c2d72b7a280faba8368d89f8df11c79e2be47874b24f225504747c468498950ff33c9996cc314 Net-CIDR-0.20.tar.gz"
+sha512sums="28e7c808173d87a403ab6d924763bdeeef61801775167a11b02bf352d70808821f896f7e3dbb1fd3cd2b42c937f9c6175d1522daddf38c53ee9d242d1a3b5fd1 Net-CIDR-0.21.tar.gz"