blob: 5226f0bcd8d62b66fc394f5c902edf161054b673 (
plain)
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
37
|
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-cpanel-json-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Cpanel-JSON-XS
pkgver=4.32
pkgrel=0
pkgdesc="cPanel fork of JSON::XS, fast and correct serializing"
url="https://metacpan.org/release/Cpanel-JSON-XS/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
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
"
|