diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 06:14:40 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 06:14:40 -0500 |
commit | 84b571d3bf58ed204d5a8b1589c4783356148a61 (patch) | |
tree | a42978adf1249ff4465827e1e3f70a83cee84a4d /system | |
parent | cb5c29d47632246ecd22bdb4982e181c338f0322 (diff) | |
download | packages-84b571d3bf58ed204d5a8b1589c4783356148a61.tar.gz packages-84b571d3bf58ed204d5a8b1589c4783356148a61.tar.bz2 packages-84b571d3bf58ed204d5a8b1589c4783356148a61.tar.xz packages-84b571d3bf58ed204d5a8b1589c4783356148a61.zip |
system/perl-json-maybexs: add for perl-yaml-tiny
Diffstat (limited to 'system')
-rw-r--r-- | system/perl-json-maybexs/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-json-maybexs/APKBUILD b/system/perl-json-maybexs/APKBUILD new file mode 100644 index 000000000..5fe5367f3 --- /dev/null +++ b/system/perl-json-maybexs/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-json-maybexs +_pkgreal=JSON-MaybeXS +pkgver=1.004000 +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-2.0-only OR Artistic-1.0-Perl" +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/H/HA/HAARG/$_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 +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="caebd00e49f4bd79f9a9a748077d58d963f53b656e4f48f9577a14fb36a80e956ff393f0ccdf7066129bcd7ebcec73a201c1c6fc778ce2488522b4e3886d2bbb JSON-MaybeXS-1.004000.tar.gz" |