aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-carp
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 11:21:59 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 11:25:38 +0000
commit03c2f04fbd760c023513ab02c14dd9051433e063 (patch)
tree1a01e95b35a32013fb22b6da71fd3d1bc21efc77 /main/perl-carp
parent625d40f0ff7f056a6e1249bfd7db1ed2a716fa94 (diff)
downloadaports-03c2f04fbd760c023513ab02c14dd9051433e063.tar.bz2
aports-03c2f04fbd760c023513ab02c14dd9051433e063.tar.xz
main/perl-carp: upgrade to 1.38
Add check(), modernize APKBUILD
Diffstat (limited to 'main/perl-carp')
-rw-r--r--main/perl-carp/APKBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/main/perl-carp/APKBUILD b/main/perl-carp/APKBUILD
index 5600548948..75c557967c 100644
--- a/main/perl-carp/APKBUILD
+++ b/main/perl-carp/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-carp
_pkgreal=Carp
pkgver=1.38
-pkgrel=1
+pkgrel=0
pkgdesc="alternative warn and die for modules"
url="http://search.cpan.org/dist/Carp/"
arch="noarch"
@@ -25,12 +25,17 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
@@ -39,6 +44,4 @@ doc() {
replaces="perl-doc"
}
-md5sums="93ac4c56312a9db6cef3b502a8169859 Carp-1.38.tar.gz"
-sha256sums="a5a9ce3cbb959dfefa8c2dd16552567199b286d39b0e55053ca247c038977101 Carp-1.38.tar.gz"
sha512sums="da59e6df490599ee8a83b18c9767438d29b18e4fdd291f2a432be6e7610bf312ddb40f1f2d6892787720ae0133e2b50c47d1fde122094e69114165ebd5b98920 Carp-1.38.tar.gz"