blob: f8fb858baefcaca496cf8d53e08c79b84bf1d754 (
plain) (
tree)
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-json-maybexs
_pkgreal=JSON-MaybeXS
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.004004
pkgrel=0
pkgdesc="Use <Cpanel::JSON::XS> with a fallback to <JSON::XS> and <JSON::PP>"
url="https://metacpan.org/release/JSON-MaybeXS"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-cpanel-json-xs"
checkdepends="perl-test-needs perl-test-without-module"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="b3ed3a0993c0671f49cbb6bde72b58f3dc55d807b42cfa98702e92daea177fdd8f71cccda962daedf98fb0d77d043a95558a670eda70c8e929791e52229bab9d JSON-MaybeXS-1.004004.tar.gz"
|