aports/testing/perl-net-patricia/APKBUILD

31 lines
995 B
Text

# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-net-patricia
_pkgreal=Net-Patricia
pkgver=1.22
pkgrel=12
pkgdesc="Patricia Trie perl module for fast IP address lookups"
url="https://metacpan.org/release/Net-Patricia/"
arch="all"
license="GPL PerlArtistic"
options="!check" # no testsuite
makedepends="perl-dev perl-net-cidr-lite perl-socket6"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GR/GRUBER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
d76702d30784f8448dcf3a5269e052bc7bd6f5fe5a16824b6e3ede1d0182deb139522e45e1fb78749a7527ddbc950c213d843e43f45b5b0ed63b5b985b329861 Net-Patricia-1.22.tar.gz
"