diff options
Diffstat (limited to 'community/perl-json-xs')
-rw-r--r-- | community/perl-json-xs/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/perl-json-xs/PKGBUILD b/community/perl-json-xs/PKGBUILD new file mode 100644 index 000000000..d376698fd --- /dev/null +++ b/community/perl-json-xs/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 35682 2010-12-21 23:39:21Z tdziedzic $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Tor Krill <tor@krill.nu> + +pkgname=perl-json-xs +pkgver=2.3 +pkgrel=2 +pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast" +url="http://search.cpan.org/dist/JSON-XS/" +license=("GPL") +arch=('i686' 'x86_64') +depends=('perl' 'perl-common-sense') +options=('!emptydirs' 'force') +LC_NUMERIC=C +provides=("$pkgname=`printf %.4f $pkgver`") +source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz) +md5sums=('4dc2a968e41f8cf330d46be12f221a12') + +build() { + cd $srcdir/JSON-XS-$pkgver + eval `perl -V:archname` + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR=$pkgdir install + + find $pkgdir -name '.packlist' -delete && \ + find $pkgdir -name '*.pod' -delete +} |