summaryrefslogblamecommitdiff
path: root/user/perl-json-xs/APKBUILD
blob: d27129b51d16094d27fde66c6d421557357c9a54 (plain) (tree)
1
2
3
4
5
6
7
8


                                                                   



                               
           






                                                                 
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                  
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-json-xs
_pkgreal=JSON-XS
_author=MLEHMANN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=4.02
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"
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="4a8fdf8d81cdd6e38c3c5672621d38ef6f63a09ca3a74e98fbb21e679273c347d2a3b8c2233c8e813987d2728081fb535223ea3f705d33a7016b76d0e76ffd61  JSON-XS-4.02.tar.gz"