# $Id: PKGBUILD 105342 2014-02-05 15:26:52Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Jaroslav Lichtblau # Contributor: Allan McRae # Contributor: David Moore pkgbase=python-simplejson pkgname=("$pkgbase" 'python2-simplejson') pkgver=3.3.2 pkgrel=1 pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python' license=('MIT') arch=('i686' 'x86_64' 'mips64el') url='http://undefined.org/python/#simplejson' makedepends=('python-setuptools' 'python2-setuptools') source=("$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/tarball/v${pkgver}") sha256sums=('ecff7508cb34547de611c5b367ad1ff74290f638f29853be5801823e1565592c') package_python-simplejson() { depends=('python') cd "simplejson-simplejson-"* python setup.py install --root="$pkgdir" install -Dm644 "$srcdir/simplejson-simplejson"-*/LICENSE.txt \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-simplejson() { depends=('python2') cd "simplejson-simplejson-"* python2 setup.py install --root="$pkgdir" install -Dm644 "$srcdir/simplejson-simplejson"-*/LICENSE.txt \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: