summaryrefslogtreecommitdiff
path: root/system/perl-json-maybexs/APKBUILD
blob: 760b09e199ee72b1ab49a429c0e7c23d428d2b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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=HAARG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.004000
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"
makedepends=""
checkdepends="perl-test-without-module"
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="caebd00e49f4bd79f9a9a748077d58d963f53b656e4f48f9577a14fb36a80e956ff393f0ccdf7066129bcd7ebcec73a201c1c6fc778ce2488522b4e3886d2bbb  JSON-MaybeXS-1.004000.tar.gz"