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




                                                                   
             

                               
               
        

                                                                             

                                           
                             

                                                       
                          
                                                                                        

                                    
         
                                                                 



            



                 



                                                                           
                                                                                                                                                                           
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-json-maybexs
_pkgreal=JSON-MaybeXS
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.004002
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="5e8965323051f34e8b0f2ad9ed2eb7ec05a6479112c1c56c450f7d3224e82bf382f643e897c33f11218e2fb7d8807ad3c5306f83b7eb53081602d9d8fafc4fbe  JSON-MaybeXS-1.004002.tar.gz"