aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-hash-merge
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-22 22:11:25 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-22 22:11:25 +0000
commit2d7d2c67de6fbd2ddfd955d387329ecbdb2716d4 (patch)
tree9d264ac0c9fef640ba68a1374eedda7ba4e6bfe4 /testing/perl-hash-merge
parentbb850d53166f26d3368c7704e0ab3b6e8a839b17 (diff)
downloadaports-2d7d2c67de6fbd2ddfd955d387329ecbdb2716d4.tar.bz2
aports-2d7d2c67de6fbd2ddfd955d387329ecbdb2716d4.tar.xz
testing/perl-hash-merge: upgrade to 0.300 and modernize
Diffstat (limited to 'testing/perl-hash-merge')
-rw-r--r--testing/perl-hash-merge/APKBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/testing/perl-hash-merge/APKBUILD b/testing/perl-hash-merge/APKBUILD
index ceb4210757..3b072c4b7a 100644
--- a/testing/perl-hash-merge/APKBUILD
+++ b/testing/perl-hash-merge/APKBUILD
@@ -3,35 +3,41 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-hash-merge
_pkgreal=Hash-Merge
-pkgver=0.12
+pkgver=0.300
pkgrel=0
pkgdesc="Merges arbitrarily deep hashes into a single hash"
url="http://search.cpan.org/dist/Hash-Merge/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-clone"
-cpanmakedepends=""
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
+checkdepends="perl-clone-choose"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ 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
}
-md5sums="875e2d9101bde2f6b410dd12f7e10964 Hash-Merge-0.12.tar.gz"
+sha512sums="a7d988f64ff2487b4d1237d01d424ea49c99fd64b721b331735223b86342f54442007ee371f0a94646f835997446cc99e857b3cd23429639bf47af8fe42bad2e Hash-Merge-0.300.tar.gz"