blob: 8b93d3c481a5a39edcb9076b1840eb1ce116cbe0 (
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
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.17
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="1e827af8d51f4bf984e8c016bc34e66d7b3364556a8295a1e6a4bcd17e959a8c56fb7873d7c3884ab740eb85203c3aecd09349b14a297ca8ba5cd995815fabf1 Cpanel-JSON-XS-4.17.tar.gz"
|