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



                               
           



                                                                 
                                       

                                                      
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                  
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-json-xs
_pkgreal=JSON-XS
_author=MLEHMANN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=4.03
pkgrel=0
pkgdesc="JSON serialising/deserialising, done correctly and fast"
url="https://metacpan.org/pod/JSON::XS"
arch="all"
license="Artistic-1.0-Perl OR GPL-1.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="7d2c20302b0f98bd69e692b61d272b58c13a79741f3e2e44ee0530e21dd239526477f8b02e4afbfe41ee83cb69ab1c5247bf0be355f3f09e9cfe31b2ea4a5155  JSON-XS-4.03.tar.gz"