diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-cpanel-json-xs/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/perl-cpanel-json-xs/APKBUILD b/main/perl-cpanel-json-xs/APKBUILD new file mode 100644 index 0000000000..55c9f34be5 --- /dev/null +++ b/main/perl-cpanel-json-xs/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-cpanel-json-xs +_pkgreal=Cpanel-JSON-XS +pkgver=3.0239 +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="perl-json perl-test-leaktrace" +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" + +check() { + cd "$builddir" + make test +} + +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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="fee7b52f2bb48a4dc6314da4c274bb3456b6af2a0d891c1125425e5a0898e3115ea486a7dc057c25aaf7fc141bfebb5ea4341b17d00373b68a7388eb75f5bdb0 Cpanel-JSON-XS-3.0239.tar.gz" |