diff options
Diffstat (limited to 'system/perl-cpanel-json-xs/APKBUILD')
-rw-r--r-- | system/perl-cpanel-json-xs/APKBUILD | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/system/perl-cpanel-json-xs/APKBUILD b/system/perl-cpanel-json-xs/APKBUILD index ef5094438..403e77f00 100644 --- a/system/perl-cpanel-json-xs/APKBUILD +++ b/system/perl-cpanel-json-xs/APKBUILD @@ -1,43 +1,35 @@ -# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista <fcolista@alpinelinux.org> -# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> pkgname=perl-cpanel-json-xs _pkgreal=Cpanel-JSON-XS -pkgver=4.12 +_author=RURBAN +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} +pkgver=4.37 pkgrel=0 pkgdesc="cPanel's fork of JSON::XS, fast and correct serialising" url="https://metacpan.org/release/Cpanel-JSON-XS" arch="all" license="GPL-2.0-only OR Artistic-1.0-Perl" -cpandepends="" -cpanmakedepends="perl-json perl-test-leaktrace" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +depends="perl" +makedepends="perl-dev perl-json perl-test-leaktrace" subpackages="$pkgname-doc" -source="https://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_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 "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="8545095726d833d7404e8fc2a6e71a4f4b8e6c2f5d7d9939758bb8eb1ffcf33f28867a8e70fb1df995ec6c14eccde53c5c85fb6d3da2929337b15905d4195c5b Cpanel-JSON-XS-4.12.tar.gz" +sha512sums="f1b5fc161711815f33b3e05a19111d9c94ef817c952eb3d317cb8bc3fd973acdb645a6b129cb21345dccf4a161de069f0ab2d3cb807e7f6b20ebe2527ef48978 Cpanel-JSON-XS-4.37.tar.gz" |