diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-21 12:19:04 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-21 12:19:08 +0000 |
commit | 6e43b8e910ddb974b60364e4a18c31ff9c22b9e8 (patch) | |
tree | b0897361a45f5671b327a61a2bfbd2c342a74bbb | |
parent | d4baf088a2674fd03176ddf7af67e8eaf34b4062 (diff) | |
download | aports-6e43b8e910ddb974b60364e4a18c31ff9c22b9e8.tar.bz2 aports-6e43b8e910ddb974b60364e4a18c31ff9c22b9e8.tar.xz |
community/perl-extutils-pkgconfig: upgrade to 1.16, modernize APKBUILD
-rw-r--r-- | community/perl-extutils-pkgconfig/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/community/perl-extutils-pkgconfig/APKBUILD b/community/perl-extutils-pkgconfig/APKBUILD index 4766a4ff34..6c2924f987 100644 --- a/community/perl-extutils-pkgconfig/APKBUILD +++ b/community/perl-extutils-pkgconfig/APKBUILD @@ -3,39 +3,42 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-extutils-pkgconfig _pkgreal=ExtUtils-PkgConfig -pkgver=1.15 +pkgver=1.16 pkgrel=0 pkgdesc="unknown" url="http://search.cpan.org/dist/ExtUtils-PkgConfig/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" + +check() { + cd "$builddir" + make test +} prepare() { - cd "$_builddir" + 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 } 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="1872e659cf2bb0b2471d75fce735e622 ExtUtils-PkgConfig-1.15.tar.gz" -sha256sums="69b3192e22b37e930238f332b5bfa9e14e69bec1427ba70c8515fbba1137b0b3 ExtUtils-PkgConfig-1.15.tar.gz" -sha512sums="975cc64d07f488bd0b89516ed3304797f8d74774f49e888e72788ef54f432ebb77a70af610e25f275baaea08a7756ce78c964e28bf2c853783a35e67b4aeeeaf ExtUtils-PkgConfig-1.15.tar.gz" +sha512sums="a872fd54aa5bf3137ace9c44457dfc047ea6d283accc453e824b609b6996a8e2fab685459f38a8236419155df01a18421671426a7237639a47ab32e18c9b4191 ExtUtils-PkgConfig-1.16.tar.gz" |