aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/perl-json-xs/APKBUILD41
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"