diff options
-rw-r--r-- | main/perl-exporter-tiny/APKBUILD | 29 |
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" |