From 76aca72691d5add98ba8667fcc2d8e677e9c09d1 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 10 Nov 2017 22:23:27 +0000 Subject: community/perl-cpanel-json-xs: move to main moved due to perl-module-install --- main/perl-cpanel-json-xs/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 main/perl-cpanel-json-xs/APKBUILD (limited to 'main') 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 +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" -- cgit v1.2.3