diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-11 11:41:43 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-13 09:08:07 +0000 |
commit | 2860b64de14018938c6eab4bec1e09a9e2f9eee4 (patch) | |
tree | 18358cd1d913c537843a33187e96742088333c14 /main | |
parent | 9bf9954e196d3271088ae9cddd5bb6c82811a0ba (diff) | |
download | aports-2860b64de14018938c6eab4bec1e09a9e2f9eee4.tar.bz2 aports-2860b64de14018938c6eab4bec1e09a9e2f9eee4.tar.xz |
main/perl-hash-multivalue: upgrade to 0.15 and modernize
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-hash-multivalue/APKBUILD | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/main/perl-hash-multivalue/APKBUILD b/main/perl-hash-multivalue/APKBUILD index ba7fb795ae..82ea4a7f00 100644 --- a/main/perl-hash-multivalue/APKBUILD +++ b/main/perl-hash-multivalue/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-hash-multivalue -pkgver=0.08 +pkgver=0.15 pkgrel=0 pkgdesc="Hash::MultiValue perl module" url="http://search.cpan.org/dist/Hash-MultiValue/" @@ -9,31 +9,26 @@ arch="noarch" license="GPLv2 or Artistic" depends="perl" makedepends="perl-dev" -install="" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Hash-MultiValue-$pkgver.tar.gz" -_builddir="$srcdir"/Hash-MultiValue-$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/Hash-MultiValue-$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="d6565fcb7223a42bf9eefbb1a9281b365b8704e1a5965ab5c92b6e04e053a742a9f6dde6ea036d1abe8a4047c1d99124937fef6f2891460e5f8aa5119364f3f4 Hash-MultiValue-0.08.tar.gz" +sha512sums="fd97db887590c8c9ecbd0e58434df01fae8e3d2aa2335245ea1217d454e50c3bf1177921dd340f4cca3685808bebc573d13c892da7ccd685d3658c1db9d96465 Hash-MultiValue-0.15.tar.gz" |