diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-10 22:23:27 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-10 22:27:55 +0000 |
commit | 76aca72691d5add98ba8667fcc2d8e677e9c09d1 (patch) | |
tree | f46ba37a969f71977588e19a4708328307647c89 /main/perl-cpanel-json-xs/APKBUILD | |
parent | ff75f59d29c57ed283d328b55f8065dbe35a65dd (diff) | |
download | aports-76aca72691d5add98ba8667fcc2d8e677e9c09d1.tar.bz2 aports-76aca72691d5add98ba8667fcc2d8e677e9c09d1.tar.xz |
community/perl-cpanel-json-xs: move to main
moved due to perl-module-install
Diffstat (limited to 'main/perl-cpanel-json-xs/APKBUILD')
-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" |