aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-json-maybexs/APKBUILD
blob: 65234363000623c95cce5237f390191fc85a05fd (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-json-maybexs
_pkgreal=JSON-MaybeXS
pkgver=1.003007
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/E/ET/ETHER/$_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 && make test
}

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

md5sums="576cdbd25bb10331c995cca870584be2  JSON-MaybeXS-1.003007.tar.gz"
sha256sums="eb0c19fadd8f640a903246743fc83e398c173917b9280303b06f508833065b48  JSON-MaybeXS-1.003007.tar.gz"
sha512sums="4e1cef666dde95c39cc05cc29fbb3119061f5a4a61920543bd38355621e8f1051d7b3b31e0b1bddb0490a060fbf067ae68c67450164d040a6d03531eec50e20b  JSON-MaybeXS-1.003007.tar.gz"