aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-05-14 03:50:06 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-05-14 08:33:40 +0000
commit71000194b9528f38106a12f6c18a42b607a19c94 (patch)
tree75701f68623459a24016d89c7aa40b3a27f063f6
parent88ad3b5e8265325a24841e1ca83b9082e68f5065 (diff)
downloadaports-71000194b9528f38106a12f6c18a42b607a19c94.tar.gz
aports-71000194b9528f38106a12f6c18a42b607a19c94.tar.bz2
aports-71000194b9528f38106a12f6c18a42b607a19c94.tar.xz
main/perl-test-requires: upgrade to 0.11
-rw-r--r--main/perl-test-requires/APKBUILD27
1 files changed, 12 insertions, 15 deletions
diff --git a/main/perl-test-requires/APKBUILD b/main/perl-test-requires/APKBUILD
index 3b1b60f080..c5530ab625 100644
--- a/main/perl-test-requires/APKBUILD
+++ b/main/perl-test-requires/APKBUILD
@@ -3,37 +3,34 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-requires
_pkgreal=Test-Requires
-pkgver=0.10
-pkgrel=1
+pkgver=0.11
+pkgrel=0
pkgdesc="Checks to see if the module can be loaded"
url="https://metacpan.org/release/Test-Requires/"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ default_prepare
+
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="5bc6bf52ae5ab3c56f49b7b17faedf7d6afef2cadfca8aab4770f2c2f91cd4fcb98921e1af159d1dc42684b80f50d4b7fc12bd05ef9dccdcbeeeb6100a9e5ae6 Test-Requires-0.10.tar.gz"
+sha512sums="770ea2469e386296fe1ded3630fa9b7f30ee22acd3522fb83ad95171ccb96812ef2fc5fa30d658a405dc1c435d35b6d476cc054021d74e04b419b517f6f898fa Test-Requires-0.11.tar.gz"