aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-json-maybexs
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 14:47:35 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 14:47:35 +0000
commit74578467f890e254436d44956c4a0653b5469486 (patch)
tree9638b316734958ae68afbbbbffe7d0318149fc4e /community/perl-json-maybexs
parent523feae779575d9d8ee0b018bbc89cf9117377cf (diff)
downloadaports-74578467f890e254436d44956c4a0653b5469486.tar.bz2
aports-74578467f890e254436d44956c4a0653b5469486.tar.xz
community/perl-json-maybexs: moved from testing
Diffstat (limited to 'community/perl-json-maybexs')
-rw-r--r--community/perl-json-maybexs/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-json-maybexs/APKBUILD b/community/perl-json-maybexs/APKBUILD
new file mode 100644
index 0000000000..e2724ff08d
--- /dev/null
+++ b/community/perl-json-maybexs/APKBUILD
@@ -0,0 +1,40 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-json-maybexs
+_pkgreal=JSON-MaybeXS
+pkgver=1.003005
+pkgrel=0
+pkgdesc="Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>"
+url="http://search.cpan.org/dist/JSON-MaybeXS/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-cpanel-json-xs"
+cpanmakedepends=" perl-test-without-module "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="653c088177982f8ac4e6b1697c2c94f4 JSON-MaybeXS-1.003005.tar.gz"
+sha256sums="bdb4694b564f10459d49b9658693ceb8b91b66db0fc5e9f19cf15f3ce46cc80a JSON-MaybeXS-1.003005.tar.gz"
+sha512sums="101b5b693eabeaf4e8417d021b3d311b9c8669a0121b97af7781cfbdb3ba24b8aef80d15a3cf4d78b40e47230e9f1c4450c73741675ec6d5ea018c6b06ea49d7 JSON-MaybeXS-1.003005.tar.gz"