diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-11 12:12:59 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-13 09:08:07 +0000 |
commit | a5b7a19f85fdcfaa8c8112b342e8358297a729d8 (patch) | |
tree | c930505e56e56f3e852fa084094c1ce5261abeb9 /main/perl-regexp-common-net-cidr | |
parent | 535882eaed2f8429aa6fb7c01d20cac299c2f5c6 (diff) | |
download | aports-a5b7a19f85fdcfaa8c8112b342e8358297a729d8.tar.bz2 aports-a5b7a19f85fdcfaa8c8112b342e8358297a729d8.tar.xz |
main/perl-regexp-common-net-cidr: add missing make dependency and modernize
Diffstat (limited to 'main/perl-regexp-common-net-cidr')
-rw-r--r-- | main/perl-regexp-common-net-cidr/APKBUILD | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/main/perl-regexp-common-net-cidr/APKBUILD b/main/perl-regexp-common-net-cidr/APKBUILD index 3b7ef314e8..365c8e935b 100644 --- a/main/perl-regexp-common-net-cidr/APKBUILD +++ b/main/perl-regexp-common-net-cidr/APKBUILD @@ -2,37 +2,32 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-regexp-common-net-cidr pkgver=0.02 -pkgrel=0 +pkgrel=1 pkgdesc="Regexp::Common::net::CIDR perl module" url="http://search.cpan.org/dist/Regexp-Common-net-CIDR/" arch="noarch" license="GPLv2 or Artistic" depends="perl perl-regexp-common" -makedepends="perl-dev" -install="" +makedepends="perl-dev perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RU/RUZ/Regexp-Common-net-CIDR-$pkgver.tar.gz" -_builddir="$srcdir"/Regexp-Common-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/Regexp-Common-net-CIDR-$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 } |