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-iptrie | |
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-iptrie')
-rw-r--r-- | community/perl-net-iptrie/APKBUILD | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/community/perl-net-iptrie/APKBUILD b/community/perl-net-iptrie/APKBUILD index 57e2cd7698..e8f3c706c6 100644 --- a/community/perl-net-iptrie/APKBUILD +++ b/community/perl-net-iptrie/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-net-iptrie _pkgreal=Net-IPTrie pkgver=0.7 -pkgrel=1 +pkgrel=2 pkgdesc="Perl module for building IPv4 and IPv6 address space hierarchies" url="http://search.cpan.org/dist/Net-IPTrie/" arch="noarch" @@ -16,25 +16,30 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/C/CV/CVICENTE/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - perl Build.PL installdirs=vendor || return 1 + default_prepare + + cd "$builddir" + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="c465a27fdac74109b34dfbc271adb90d Net-IPTrie-0.7.tar.gz" -sha256sums="1ccd1eea53a06d0524efc42fd465dfc5997149d77f87d86f1ccf0e2e05d58e05 Net-IPTrie-0.7.tar.gz" sha512sums="6f1033f078aeed7d76dfc5f7a5a55c02601205c8b3e1626ecee6205e136c3c736cfb658b4f48cd24fba5491f2cb44a793cd942752f03489f40decbf242f80aad Net-IPTrie-0.7.tar.gz" |