# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Francesco Colista pkgname=perl-cpanel-json-xs _pkgreal=Cpanel-JSON-XS pkgver=3.0233 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" 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="bd4148942c65a4c4bad224f5a0c6b5816b63e6ca9b6a58fc9fb727292243a3098a9fd7204b9cdd126f59d4e3f8f81202448447e74dc3b34018fc578ccb183389 Cpanel-JSON-XS-3.0233.tar.gz"