aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-json-xs/APKBUILD
blob: 9ec39933ce1348bf3f24abdead9ff2231e1d8b92 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      

                                                      


                    
        
                                                                           


                                          

                                                     



























                                                                                                                                                                  
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-json-xs
_pkgreal=JSON-XS
pkgver=3.01
pkgrel=2
pkgdesc="Perl extension to converts data structures to JSON and vice versa"
url="http://search.cpan.org/dist/JSON-XS/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-types-serialiser perl-common-sense"
cpanmakedepends="   "
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"