diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-07-15 09:26:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-16 10:56:09 +0000 |
commit | 1bf7a8c6f145dae651a3788987403e67bfe71354 (patch) | |
tree | 3991e4d99cf0a517d2e7c7de74b1fb085e232ead /main/perl-extutils-installpaths | |
parent | afd10bb14dc8c1e3f282ee0c9a32044195b6f471 (diff) | |
download | aports-1bf7a8c6f145dae651a3788987403e67bfe71354.tar.bz2 aports-1bf7a8c6f145dae651a3788987403e67bfe71354.tar.xz |
main/perl-extutils-installpaths: upgrade to 0.012 and modernize
Diffstat (limited to 'main/perl-extutils-installpaths')
-rw-r--r-- | main/perl-extutils-installpaths/APKBUILD | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/main/perl-extutils-installpaths/APKBUILD b/main/perl-extutils-installpaths/APKBUILD index 0adc88af71..27d07b683c 100644 --- a/main/perl-extutils-installpaths/APKBUILD +++ b/main/perl-extutils-installpaths/APKBUILD @@ -3,39 +3,43 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-extutils-installpaths _pkgreal=ExtUtils-InstallPaths -pkgver=0.011 +pkgver=0.012 pkgrel=0 pkgdesc="Build.PL install path logic made easy" url="http://search.cpan.org/dist/ExtUtils-InstallPaths/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-extutils-config" -cpanmakedepends=" " depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +makedepends="perl-dev" 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="9c75894c3c8c899ab6bfafc5eaa97999 ExtUtils-InstallPaths-0.011.tar.gz" -sha256sums="7609fa048cdcf1451cad5b1d7d494f30e3d5bad0672d15404f1ea60e1df0067c ExtUtils-InstallPaths-0.011.tar.gz" -sha512sums="c31bfce1ba1094f1408409d9a50406d7eb974ce43195e968fae51493a7fd3c7112d41af561435233b14d2396df297604ec0c264bab910566c046f9f7b5b3beb7 ExtUtils-InstallPaths-0.011.tar.gz" +sha512sums="92a4e9ebb387d330ae67b0716b96b27165d08503d2915d8301b3a6aa185f962940e761d21fd400033e6a814e276918e0662da3740ca2852a53cf0fe54f3d7660 ExtUtils-InstallPaths-0.012.tar.gz" |