From 79dbc1e76a00d6880cfaf2a012f943fa0e9cc6e0 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 10 Nov 2017 22:25:18 +0000 Subject: community/perl-json-maybexs: move to main moved due to perl-module-install --- main/perl-json-maybexs/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 main/perl-json-maybexs/APKBUILD (limited to 'main') 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 +pkgname=perl-json-maybexs +_pkgreal=JSON-MaybeXS +pkgver=1.003009 +pkgrel=0 +pkgdesc="Use L with a fallback to L and L" +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" -- cgit v1.2.3