aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-json-maybexs/APKBUILD
blob: 007e0e9cfc7eeb84255a0207ea70134277ac0280 (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
42
43
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-json-maybexs
_pkgreal=JSON-MaybeXS
pkgver=1.003010
pkgrel=0
pkgdesc="Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>"
url="http://search.cpan.org/dist/JSON-MaybeXS/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-cpanel-json-xs"
cpanmakedepends="  perl-test-without-module "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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
}

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

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

sha512sums="c176a5e5a153f73c12b2251b3b910a427e6872956e4b19973528f7ccf72a342ef21e01a19b339021a2efbabd2b745fed351973e176d98795059e54ab9ee0fc52  JSON-MaybeXS-1.003010.tar.gz"