# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Tor Krill 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')