diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:45:58 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:45:58 +0000 |
commit | 523feae779575d9d8ee0b018bbc89cf9117377cf (patch) | |
tree | 5371f565d5e4fc9cb501c930ff93cd9844f8f522 /community/perl-cpanel-json-xs/APKBUILD | |
parent | 89b6d536a1e2c0a95b54c361e916e72682774a84 (diff) | |
download | aports-523feae779575d9d8ee0b018bbc89cf9117377cf.tar.bz2 aports-523feae779575d9d8ee0b018bbc89cf9117377cf.tar.xz |
community/perl-cpanel-json-xs: moved from testing, upgraded to 3.0217
Diffstat (limited to 'community/perl-cpanel-json-xs/APKBUILD')
-rw-r--r-- | community/perl-cpanel-json-xs/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-cpanel-json-xs/APKBUILD b/community/perl-cpanel-json-xs/APKBUILD new file mode 100644 index 0000000000..56da841c43 --- /dev/null +++ b/community/perl-cpanel-json-xs/APKBUILD @@ -0,0 +1,40 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-cpanel-json-xs +_pkgreal=Cpanel-JSON-XS +pkgver=3.0217 +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/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +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" + +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}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="747672f925ce479d3da2ff316e47cf23 Cpanel-JSON-XS-3.0217.tar.gz" +sha256sums="0454607a2f215e1cb3f1f0acce73b46c9b970fab928dc174ec832459f300a060 Cpanel-JSON-XS-3.0217.tar.gz" +sha512sums="62e426709adbd7f112b105d45d8bbd7174053ef43e36138b49dd61ed33a2d419601a6a2a2308c13634eb11ab1d5d7915651f333356be04fbb43079b6bbb55d1e Cpanel-JSON-XS-3.0217.tar.gz" |