blob: 2eb62bdee64e583bf57bcac09b8cfe71baa1e8ba (
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
# Contributor:
# Maintainer:
pkgname=perl-json-xs
_pkgreal=JSON-XS
pkgver=3.01
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/JSON-XS/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-common-sense perl-types-serialiser"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_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="b7be65295baf6dd9233c6494782c1153 JSON-XS-3.01.tar.gz"
sha256sums="4e8df3256a5aa9ed304ce1bbcd9140737deef31ba847bff9f4c15480c88c71ab JSON-XS-3.01.tar.gz"
sha512sums="75acc0d1b8a916ff1ef08466357e77159f1c53a0e021f93a066f745bf3a67dbf18342fb7f1d8666f2ff2c54a0257ea8a9ce6efc8ce2eeefa81689d406f667733 JSON-XS-3.01.tar.gz"
|