diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 12:57:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 18:10:57 +0000 |
commit | 6183ccd76a4db8d3e287afa46ae7a3777fd6f838 (patch) | |
tree | 54bbbfdfa56a4e1f5a15204c84151e475f1bc6af | |
parent | 046c2f4da3f94c5573c5f5358f6796fcb2903742 (diff) | |
download | aports-6183ccd76a4db8d3e287afa46ae7a3777fd6f838.tar.bz2 aports-6183ccd76a4db8d3e287afa46ae7a3777fd6f838.tar.xz |
main/perl-net-cidr-lite: modernize, add check
-rw-r--r-- | main/perl-net-cidr-lite/APKBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/main/perl-net-cidr-lite/APKBUILD b/main/perl-net-cidr-lite/APKBUILD index b43419d2df..6ae1a15694 100644 --- a/main/perl-net-cidr-lite/APKBUILD +++ b/main/perl-net-cidr-lite/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-net-cidr-lite _realname=Net-CIDR-Lite pkgver=0.21 -pkgrel=3 +pkgrel=4 pkgdesc="Perl extension for merging IPv4 or IPv6 CIDR addresses" url="http://search.cpan.org/~dougw/Net-CIDR-Lite-0.21/" arch="noarch" @@ -14,11 +14,20 @@ install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/$_realname-$pkgver.tar.gz" +builddir="$srcdir/$_realname-$pkgver" build() { - cd "$srcdir/$_realname-$pkgver" + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +package() { + cd "$builddir" make DESTDIR="$pkgdir" install # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete |