aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cpanel-json-xs/APKBUILD
blob: 8f5f99e46d3e45905367adf8dc1d4f3667c21284 (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
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-cpanel-json-xs
_pkgreal=Cpanel-JSON-XS
pkgver=4.13
pkgrel=0
pkgdesc="JSON::XS for Cpanel, fast and correct serialising, also for 5.6.2"
url="https://metacpan.org/release/Cpanel-JSON-XS"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-json perl-test-leaktrace"
depends="perl"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	cd "$builddir"
	make test
}

prepare() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="02aeda7488fd4fc4309502a2df14f515c2f02be4e1de62c0a67af81c486d8a820a81d4f23f1d6060a3b0265556ea96ba4d43ba47c2c8dc99ca68d511123b7196  Cpanel-JSON-XS-4.13.tar.gz"