summaryrefslogblamecommitdiff
path: root/system/perl-json-maybexs/APKBUILD
blob: 12e22b2a841dce75ec422cf4c74eeb263f4673ef (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                                          

                         
             

                               
               
        

                                                                             

                                           
                             

                                                       
                          
                                                                                        

                                    
         
                                                                 



            



                 



                                                                           
                                                                                                                                                                           
# 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.004005
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="f483549f08bb829c7958fd36d33ece8550ed13d53f559d3a8a0915045a11443a01fcbd3ad767f09759d24ec98c2eeced4e550a1fb333a1fc929b7086e1506edf  JSON-MaybeXS-1.004005.tar.gz"