diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-06-18 07:39:32 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-07-03 13:10:30 +0000 |
commit | 6d5a437ff4ece5d6da2bfadfa86aae3f24489ca1 (patch) | |
tree | bfcfe49a0a476491391c4188a26705f305b87c63 /main/perl-net-cidr | |
parent | e6ae77f40adf590e3604bf9b98ed898ac029cb28 (diff) | |
download | aports-6d5a437ff4ece5d6da2bfadfa86aae3f24489ca1.tar.bz2 aports-6d5a437ff4ece5d6da2bfadfa86aae3f24489ca1.tar.xz |
main/perl-net-cidr: upgrade to 0.19 and modernize
Diffstat (limited to 'main/perl-net-cidr')
-rw-r--r-- | main/perl-net-cidr/APKBUILD | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/main/perl-net-cidr/APKBUILD b/main/perl-net-cidr/APKBUILD index 75d1a6bfb4..4dc4a96d28 100644 --- a/main/perl-net-cidr/APKBUILD +++ b/main/perl-net-cidr/APKBUILD @@ -1,7 +1,8 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-net-cidr -pkgver=0.17 +_pkgname=Net-CIDR +pkgver=0.19 pkgrel=0 pkgdesc="Manipulate IPv4/IPv6 netblocks in CIDR notation" url="http://search.cpan.org/dist/Net-CIDR/" @@ -9,31 +10,26 @@ arch="noarch" license="GPL+ or Artistic" depends="perl" makedepends="perl-dev" -install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/MR/MRSAM/Net-CIDR-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/M/MR/MRSAM/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/Net-CIDR-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + 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 } -sha512sums="bb1ad29f79879e46afc221ddec1d790ea69d470e7363dc90e27ec3fb34e15cf753b457b76a4ea0e70db4afc0aeb11f3e2bbe7c204abb5aae967d13ae9605460f Net-CIDR-0.17.tar.gz" +sha512sums="2872fd4cd2dffdc56a3ad3ce4a2cb93221f2aae86c9f6875bd4a0323313c0dfa205ac9cd32173594aecfccd0d9b9c32123c3c8da3faf4109734aed43f5418820 Net-CIDR-0.19.tar.gz" |