aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-07-24 06:59:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-25 13:06:31 +0000
commit8b021fb633e5074e53b40cc4584e41797aa53fe6 (patch)
treea524f608148f517c75141724bd06deccde702642
parentaf476c41df666db7319e8488e2dcd65b3e1e4fd4 (diff)
downloadaports-8b021fb633e5074e53b40cc4584e41797aa53fe6.tar.gz
aports-8b021fb633e5074e53b40cc4584e41797aa53fe6.tar.bz2
aports-8b021fb633e5074e53b40cc4584e41797aa53fe6.tar.xz
main/perl-exporter-tiny: upgrade to 1.002001 and modernize
-rw-r--r--main/perl-exporter-tiny/APKBUILD29
1 files changed, 17 insertions, 12 deletions
diff --git a/main/perl-exporter-tiny/APKBUILD b/main/perl-exporter-tiny/APKBUILD
index 3d719be8a9..ed945413a7 100644
--- a/main/perl-exporter-tiny/APKBUILD
+++ b/main/perl-exporter-tiny/APKBUILD
@@ -3,37 +3,42 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-exporter-tiny
_pkgreal=Exporter-Tiny
-pkgver=1.000000
+pkgver=1.002001
pkgrel=0
-pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies"
+pkgdesc="An exporter with the features of Sub::Exporter but only core dependencies"
url="http://search.cpan.org/dist/Exporter-Tiny/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=" perl-test-warnings perl-test-fatal"
-depends="$cpandepends"
+cpanmakedepends="perl-test-warnings perl-test-fatal"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ 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
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="02e72b3d1ec09fb5b7da5638893a12098d3300cfc36ff417c8d5cd8a4ef54891d675310612130e118e0e6a88d615cc18cdc888ab7333f2fc1007632c82d4c349 Exporter-Tiny-1.000000.tar.gz"
+sha512sums="b247e7785e02c3346f231736a430c2d54e5ac93c175892090c40121c86eb255ce4d138c65e31836fd2970b45fb71dc7e68ea3c45a06a9e9c4135b45df48621d8 Exporter-Tiny-1.002001.tar.gz"