diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-25 12:18:21 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-26 06:06:27 +0000 |
commit | 3c078164cbee63f23cae391b06cbbd47065cbed1 (patch) | |
tree | 1613543f50be875498dc1b59c04e82654a4c8f9c /main/perl-exporter | |
parent | ce5aa1a63fd3017db32f646ce6a6e7ae67d72378 (diff) | |
download | aports-3c078164cbee63f23cae391b06cbbd47065cbed1.tar.bz2 aports-3c078164cbee63f23cae391b06cbbd47065cbed1.tar.xz |
main/perl-exporter: upgrade to 5.73
Move tests into check(), modernize
Diffstat (limited to 'main/perl-exporter')
-rw-r--r-- | main/perl-exporter/APKBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/main/perl-exporter/APKBUILD b/main/perl-exporter/APKBUILD index 1047dba16e..d7e100f712 100644 --- a/main/perl-exporter/APKBUILD +++ b/main/perl-exporter/APKBUILD @@ -1,10 +1,9 @@ # Automatically generated by apkbuild-cpan, template 1 -# Contributor: # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-exporter -_pkgreal=Exporter -pkgver=5.72 -pkgrel=1 +_pkgname=Exporter +pkgver=5.73 +pkgrel=0 pkgdesc="Implements default import method for modules" url="http://search.cpan.org/dist/Exporter/" arch="noarch" @@ -14,8 +13,8 @@ cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz" -builddir="$srcdir/$_pkgreal-$pkgver" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" prepare() { cd "$builddir" @@ -26,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 } @@ -40,6 +44,4 @@ doc() { replaces="perl-doc" } -md5sums="096f0692cbe46a3407a534a0d10970ca Exporter-5.72.tar.gz" -sha256sums="cd13b7a0e91e8505a0ce4b25f40fab2c92bb28a99ef0d03da1001d95a32f0291 Exporter-5.72.tar.gz" -sha512sums="ba3c3e4703c993a3bd9a73c7afd3f9ee38bf6997800fe0804c0ed645d15996a7d8fb3f46a15484c75272586bbf2cb879e2a036bf73e98bc01be5c5a23e0bf080 Exporter-5.72.tar.gz" +sha512sums="da2cc1d7670f4407210b94e53bbbe632c43a4c95267e5c8bdcc7976d85e2e90e9da948d2e063d3137ab9924959bf615092c68b0606dc9f8906ceadca0bb44aee Exporter-5.73.tar.gz" |