aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-json-maybexs/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:25:18 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:27:55 +0000
commit79dbc1e76a00d6880cfaf2a012f943fa0e9cc6e0 (patch)
treec8cc60beaa9322ce0150c761434b77aa96205d37 /main/perl-json-maybexs/APKBUILD
parent76aca72691d5add98ba8667fcc2d8e677e9c09d1 (diff)
downloadaports-79dbc1e76a00d6880cfaf2a012f943fa0e9cc6e0.tar.bz2
aports-79dbc1e76a00d6880cfaf2a012f943fa0e9cc6e0.tar.xz
community/perl-json-maybexs: move to main
moved due to perl-module-install
Diffstat (limited to 'main/perl-json-maybexs/APKBUILD')
-rw-r--r--main/perl-json-maybexs/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/perl-json-maybexs/APKBUILD b/main/perl-json-maybexs/APKBUILD
new file mode 100644
index 0000000000..977c336af8
--- /dev/null
+++ b/main/perl-json-maybexs/APKBUILD
@@ -0,0 +1,38 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-json-maybexs
+_pkgreal=JSON-MaybeXS
+pkgver=1.003009
+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
+}
+
+sha512sums="a8606ccaac749650004d70bd5d6219fb18f66c4c86f720bbec3daf21a15bacd17d308c2a394fb1c9f6584be4d7c519cbc8653bdf5c7c7fa4129b75261645d8e3 JSON-MaybeXS-1.003009.tar.gz"