diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-16 08:36:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-16 12:54:42 +0000 |
commit | 0be280ba0108fe288866b0bb38f9ee6361cbb0e1 (patch) | |
tree | 0902c4d79bf654fc024ee471f7fb8f147e9be853 /main/perl-test-pod/APKBUILD | |
parent | f44c3b227cfa8428f27865d721a8e969a5e004c7 (diff) | |
download | aports-0be280ba0108fe288866b0bb38f9ee6361cbb0e1.tar.bz2 aports-0be280ba0108fe288866b0bb38f9ee6361cbb0e1.tar.xz |
main/perl-test-pod: upgrade to 1.51
Diffstat (limited to 'main/perl-test-pod/APKBUILD')
-rw-r--r-- | main/perl-test-pod/APKBUILD | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/main/perl-test-pod/APKBUILD b/main/perl-test-pod/APKBUILD index d9c4c31959..de2ac4a2fc 100644 --- a/main/perl-test-pod/APKBUILD +++ b/main/perl-test-pod/APKBUILD @@ -1,32 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-test-pod -_realname=Test-Pod -pkgver=1.48 +_pkgreal=Test-Pod +pkgver=1.51 pkgrel=0 -pkgdesc="Check for POD errors in files" -url="http://search.cpan.org/~dwheeler/" +pkgdesc="check for POD errors in files" +url="http://search.cpan.org/dist/Test-Pod/" arch="noarch" -license="Unknown" -depends="perl" -makedepends="perl-dev" -install= +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/$_realname-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} build() { - cd "$srcdir/$_realname-$pkgver" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { - cd "$srcdir/$_realname-$pkgver" - make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="c6bfd00ccdcb417d68fb3c0a0ec884c8 Test-Pod-1.48.tar.gz" -sha256sums="2478cea781d3740ff4ce1432770707248fb3145946244a6d96e459bf14e4bcc2 Test-Pod-1.48.tar.gz" -sha512sums="daca0f72cf8363a2b79cb16116238727ee07d1f43eb78a58edaaf2543f67f5aa3fec4feff77fe2b02e91c49ce02ffd426f45943fb570ee52dac8e3d8f95dbf14 Test-Pod-1.48.tar.gz" +md5sums="f806aa84de2f0c0fba48b3a5a8a4aecf Test-Pod-1.51.tar.gz" +sha256sums="c1a1d3cedf4a579e3aad89c36f9878a8542b6656dbe71f1581420f49582d7efb Test-Pod-1.51.tar.gz" +sha512sums="bf4e8b2a71a79a5edec86991c7cbbcc929fa4f2eb403b411cd678fbdf89fe30c198e00a29db80ca9c98fe6655167c0a77e7f166f073a18711db3b1f3e5cd3c15 Test-Pod-1.51.tar.gz" |