PKGBUILDs/community/perl-json-xs/PKGBUILD
2009-10-09 21:15:33 -05:00

28 lines
1,001 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tor Krill <tor@krill.nu>
pkgname=perl-json-xs
pkgver=2.232
pkgrel=1
pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast"
url="http://search.cpan.org/~mlehmann/JSON-XS-2.23/"
license=("GPL")
options=('!emptydirs')
arch=('i686' 'x86_64')
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz)
build() {
cd $startdir/src/JSON-XS-$pkgver
eval `perl -V:archname`
/usr/bin/perl Makefile.PL \
INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
/usr/bin/make || return 1
/usr/bin/make DESTDIR=$startdir/pkg install || return 1
/usr/bin/find $startdir/pkg -name '.packlist' -delete && \
/usr/bin/find $startdir/pkg -name '*.pod' -delete
}
md5sums=('c8d0dad55592b01ff441beb947bc4646')