summaryrefslogtreecommitdiff
path: root/community/perl-json-xs/PKGBUILD
blob: 7396840ec8c1f632a686b3c5a3db1590b784b787 (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
# $Id: PKGBUILD 71805 2012-06-02 10:31:18Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tor Krill <tor@krill.nu>

pkgname=perl-json-xs
pkgver=2.32
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' 'mips64el')
depends=('perl' 'perl-common-sense')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz)
md5sums=('87f71c78010083ad4d158b5765c4a609')

build() {
  cd  $srcdir/JSON-XS-$pkgver
# eval `perl -V:archname`
  perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd  $srcdir/JSON-XS-$pkgver
  make DESTDIR=$pkgdir install

  find $pkgdir -name '.packlist' -delete && \
  find $pkgdir -name '*.pod' -delete
}