# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Francesco Colista pkgname=perl-json-maybexs _pkgreal=JSON-MaybeXS pkgver=1.004001 pkgrel=0 pkgdesc="Use L with a fallback to L and L" url="https://metacpan.org/release/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="https://cpan.metacpan.org/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 } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="d19f5029d02b615ce4545fb95584309c7609bc76239c0f86c55cb89bcb88fb6e4c7c69d8f180bdae15e3148b854ca219b5290e21b45c6ccbc3fb06fc48358dd8 JSON-MaybeXS-1.004001.tar.gz"