summaryrefslogblamecommitdiff
path: root/user/perl-json-xs/APKBUILD
blob: 75f0720cefdc7343fb1c8359e1191fdbb2e2cef4 (plain) (tree)

































                                                                                                                                                                  
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-json-xs
pkgver=3.04
pkgrel=0
pkgdesc="JSON serialising/deserialising, done correctly and fast"
url="https://metacpan.org/pod/JSON::XS"
arch="all"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl perl-common-sense perl-types-serialiser"
makedepends="perl-dev perl-canary-stability"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz"
builddir="$srcdir/JSON-XS-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="69c2e199385b5b5e331d905b64805304de80e1a3b393acaf7dce21c45254b1f23f1a83b246dcd3a80c2cfdadaf8ce3634ee587c469629cb69106f0c2239c73db  JSON-XS-3.04.tar.gz"