diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-29 14:02:45 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-29 14:02:50 +0000 |
commit | 40534d6fbbcd7db62e7eeef6fd8cff09deec41fb (patch) | |
tree | d26021bfc0d8d65b965e27baa60b64a2e82045be /community | |
parent | d0154bed7db916ccbc1c8b99ff6468ee2fdde096 (diff) | |
download | aports-40534d6fbbcd7db62e7eeef6fd8cff09deec41fb.tar.bz2 aports-40534d6fbbcd7db62e7eeef6fd8cff09deec41fb.tar.xz |
community/perl-cpanel-json-xs: upgrade to 3.0231, modernize APKBUILD
Diffstat (limited to 'community')
-rw-r--r-- | community/perl-cpanel-json-xs/APKBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/community/perl-cpanel-json-xs/APKBUILD b/community/perl-cpanel-json-xs/APKBUILD index 3889aaa35d..bab013d8e5 100644 --- a/community/perl-cpanel-json-xs/APKBUILD +++ b/community/perl-cpanel-json-xs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-cpanel-json-xs _pkgreal=Cpanel-JSON-XS -pkgver=3.0230 +pkgver=3.0231 pkgrel=0 pkgdesc="JSON::XS for Cpanel, fast and correct serialising, also for 5.6.2" url="http://search.cpan.org/dist/Cpanel-JSON-XS/" @@ -15,24 +15,29 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_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 } -sha512sums="1f760067d63d471e5954debe32127bd2901d1f0d3013badfff2980728e081717894114436ed59a9b3662a5f37b78583278622cf54c951be60e5c54366b66e9be Cpanel-JSON-XS-3.0230.tar.gz" +sha512sums="4ccedb878ae37cbd4db86ccf9b4e2c382ebf18682a5f29f2a2e9f59794b28bad4d59752f9e3933549f9eb9fb3c62a939b155abcb2f277b1fdc9115c74443d4f5 Cpanel-JSON-XS-3.0231.tar.gz" |