aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cpan-meta-check
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-07-19 13:52:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-25 12:32:12 +0000
commitdc4b0cd39714f35d8bba608acdbfc81ab28c6256 (patch)
tree3ef94e03d9a99200e3f8951a0d5f6a27c6ef866b /main/perl-cpan-meta-check
parent98535b4f99c245241c8184a1344f4a70cbc25c1c (diff)
downloadaports-dc4b0cd39714f35d8bba608acdbfc81ab28c6256.tar.bz2
aports-dc4b0cd39714f35d8bba608acdbfc81ab28c6256.tar.xz
main/perl-cpan-meta-check: upgrade to 0.014 and modernize
Diffstat (limited to 'main/perl-cpan-meta-check')
-rw-r--r--main/perl-cpan-meta-check/APKBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/main/perl-cpan-meta-check/APKBUILD b/main/perl-cpan-meta-check/APKBUILD
index 0bf44dc6df..0eedbc0fa4 100644
--- a/main/perl-cpan-meta-check/APKBUILD
+++ b/main/perl-cpan-meta-check/APKBUILD
@@ -3,39 +3,44 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-cpan-meta-check
_pkgreal=CPAN-Meta-Check
-pkgver=0.013
+pkgver=0.014
pkgrel=0
pkgdesc="Verify requirements in a CPAN::Meta object"
url="http://search.cpan.org/dist/CPAN-Meta-Check/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-module-metadata>=1.000023"
-cpanmakedepends=" perl-test-deep"
+cpanmakedepends="perl-test-deep"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_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
}
-md5sums="7bf7867f9e898e6398b9c2e8d668bb0b CPAN-Meta-Check-0.013.tar.gz"
-sha256sums="4fca09a28066e7e134d691dc25c496c838043617a93b7eec4df807df8e7f73d5 CPAN-Meta-Check-0.013.tar.gz"
-sha512sums="c7bb972ce6afd21f415d0bca03f9ebefe0298e8b7db32e42f0195ae5da535da079f482c9d2bf598cb39d234b467397eb4b949b93c34c4d02b113caf76fd5a9c5 CPAN-Meta-Check-0.013.tar.gz"
+sha512sums="a10af09a7ce771ca3983adea8053d141750fd09849609a28e7f973831fd3a3ece55281841aec93c099154bb59135986da4983bf612ae4e956c45dbb3f2770f5e CPAN-Meta-Check-0.014.tar.gz"