mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-09 14:32:02 +02:00
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 1
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=perl-cpanel-json-xs
|
|
_pkgreal=Cpanel-JSON-XS
|
|
pkgver=3.0231
|
|
pkgrel=0
|
|
pkgdesc="JSON::XS for Cpanel, fast and correct serialising, also for 5.6.2"
|
|
url="http://search.cpan.org/dist/Cpanel-JSON-XS/"
|
|
arch="all"
|
|
license="GPL PerlArtistic"
|
|
cpandepends=""
|
|
cpanmakedepends="perl-json"
|
|
depends="$cpandepends"
|
|
makedepends="perl-dev $cpanmakedepends"
|
|
subpackages="$pkgname-doc"
|
|
source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgreal-$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="4ccedb878ae37cbd4db86ccf9b4e2c382ebf18682a5f29f2a2e9f59794b28bad4d59752f9e3933549f9eb9fb3c62a939b155abcb2f277b1fdc9115c74443d4f5 Cpanel-JSON-XS-3.0231.tar.gz"
|