aports/main/perl-net-dns/APKBUILD

46 lines
1.2 KiB
Text
Raw Normal View History

# Automatically generated by apkbuild-cpan, template 4
2011-11-22 10:45:53 +00:00
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
2009-06-05 13:56:34 +00:00
pkgname=perl-net-dns
2024-12-27 13:33:45 +00:00
pkgver=1.49
pkgrel=0
2020-10-24 08:15:09 -03:00
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-DNS
pkgdesc="Perl Interface to the Domain Name System"
url="https://metacpan.org/release/Net-DNS/"
arch="noarch"
2020-10-24 08:15:09 -03:00
license="MIT"
depends="perl perl-digest-hmac"
2009-06-05 13:56:34 +00:00
subpackages="$pkgname-doc"
2020-10-24 08:15:09 -03:00
source="https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
2020-05-27 11:51:14 -03:00
2020-10-24 08:15:09 -03:00
build() {
2019-08-31 01:52:48 -03:00
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
2020-10-24 08:15:09 -03:00
make
2017-06-27 06:26:58 +00:00
}
2020-10-24 08:15:09 -03:00
check() {
2019-08-31 01:52:48 -03:00
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
2020-10-24 08:15:09 -03:00
make test
2010-02-02 08:45:48 +00:00
}
package() {
2009-06-05 13:56:34 +00:00
make DESTDIR="$pkgdir" install
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
2009-06-05 13:56:34 +00:00
}
2021-08-05 07:13:12 +00:00
sha512sums="
2024-12-27 13:33:45 +00:00
6976e01ee1e790f897635021dd2364131657455364eada7b8cdf0f0d975216007bfadbff01eeff89ad5c744e73bc22ebe01ec753b5751df12d7b799d7cae2107 Net-DNS-1.49.tar.gz
2021-08-05 07:13:12 +00:00
"