diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:07:06 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:31:30 +0000 |
commit | 3ce302210e5b0a911d9657215d691b8fe4e5b9b5 (patch) | |
tree | 778ae8d17fb65f669c60b8d5eeeb3aa43bb87d58 /community/perl-net-dns-sec | |
parent | a439676586c0e22b38559c0cfb70d81123930b3a (diff) | |
download | aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.bz2 aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.xz |
community/perl-[n-s]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
- add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-net-dns-sec')
-rw-r--r-- | community/perl-net-dns-sec/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-net-dns-sec/APKBUILD b/community/perl-net-dns-sec/APKBUILD index 3ee16ceaef..e3f3cc3985 100644 --- a/community/perl-net-dns-sec/APKBUILD +++ b/community/perl-net-dns-sec/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-net-dns-sec _pkgreal=Net-DNS-SEC pkgver=1.03 -pkgrel=0 +pkgrel=1 pkgdesc="DNSSEC extensions to Net::DNS" url="http://search.cpan.org/dist/Net-DNS-SEC/" arch="noarch" @@ -12,32 +12,37 @@ license="mit" cpandepends="perl-crypt-openssl-dsa perl-net-dns perl-crypt-openssl-rsa perl-crypt-openssl-random perl-digest-bubblebabble perl-mime-base32 perl-crypt-openssl-bignum" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="78b84a9b9b078801c51637fb0bb127a3 Net-DNS-SEC-1.03.tar.gz" -sha256sums="7d89ed9a140f80a3ad84799c7b00d17328e18bb763765910af2c661e5e5035e7 Net-DNS-SEC-1.03.tar.gz" sha512sums="17d9f2125b9ed687791941ea777927daf8cfe4a6a379d02cda499fb01a71606b1c01154a3d4f2f2ffb70f5a658aaf02e64c8e5cc308de8c8e0cc543271ee7bce Net-DNS-SEC-1.03.tar.gz" |