diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:18:52 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:19:54 +0000 |
commit | 68a83c974a67e07c555ab021ef8772c7e1277d7a (patch) | |
tree | 772dae3397eeef833c809f9dabf72db78b041ed3 /testing/perl-json-xs | |
parent | d002bc9531842775cb9faa0ab85a35cce76e7c37 (diff) | |
download | aports-68a83c974a67e07c555ab021ef8772c7e1277d7a.tar.bz2 aports-68a83c974a67e07c555ab021ef8772c7e1277d7a.tar.xz |
testing/perl-json-xs: new aport
Diffstat (limited to 'testing/perl-json-xs')
-rw-r--r-- | testing/perl-json-xs/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-json-xs/APKBUILD b/testing/perl-json-xs/APKBUILD new file mode 100644 index 0000000000..2eb62bdee6 --- /dev/null +++ b/testing/perl-json-xs/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-json-xs +_pkgreal=JSON-XS +pkgver=3.01 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/JSON-XS/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-common-sense perl-types-serialiser" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_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="b7be65295baf6dd9233c6494782c1153 JSON-XS-3.01.tar.gz" +sha256sums="4e8df3256a5aa9ed304ce1bbcd9140737deef31ba847bff9f4c15480c88c71ab JSON-XS-3.01.tar.gz" +sha512sums="75acc0d1b8a916ff1ef08466357e77159f1c53a0e021f93a066f745bf3a67dbf18342fb7f1d8666f2ff2c54a0257ea8a9ce6efc8ce2eeefa81689d406f667733 JSON-XS-3.01.tar.gz" |