summaryrefslogblamecommitdiff
path: root/system/perl-cpanel-json-xs/APKBUILD
blob: fbbe4e032f8712a364066564fd865e8c565b7a2c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                           
                                                          

                           


                               
           

                                                                 
                                                 

                                           

                                                    
                          
                                                                                        

                                    
         
                                                                  
                                                                 



            



                 



                                                                           
                                                                                                                                                                         
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-cpanel-json-xs
_pkgreal=Cpanel-JSON-XS
_author=RURBAN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=4.32
pkgrel=0
pkgdesc="cPanel's fork of JSON::XS, fast and correct serialising"
url="https://metacpan.org/release/Cpanel-JSON-XS"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-json perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')"
	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="f17809bb12c388e6344ef738abddd471d541e3854ca8775f518a4cda62f129a703bbaf85e4bf2fa960390df060a161f1ff61a3d3a35c269ae1dc4fe9af8389dd  Cpanel-JSON-XS-4.32.tar.gz"