1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/perl-net-netmask/APKBUILD

44 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-net-netmask
pkgver=2.0003
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Netmask
pkgdesc="Understand and manipulate IP netmasks"
url="https://metacpan.org/release/Net-Netmask/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-test-useallmodules"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JM/JMASLAK/Net-Netmask-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
# secfixes:
# 2.0000-r0:
# - CVE-2021-29424
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
2ac22b0f5d97af4615deec0591d2ef3091d421b93224eb36e5c6f5ae291ebf95572453152b7e27d2663186a20cc130a6b3d1fa4438113f96864f1565ee038cb6 Net-Netmask-2.0003.tar.gz
"