summaryrefslogtreecommitdiff
path: root/community/python-simplejson/PKGBUILD
blob: 6fab1f14947d713353510671d71edfac173deb11 (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
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 82843 2013-01-25 00:09:28Z arodseth $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: David Moore <davidm@sjsoft.com>

pkgbase=python-simplejson
pkgname=(python-simplejson python2-simplejson)
pkgver=3.0.7
pkgrel=2
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
license=('MIT')
arch=('i686' 'x86_64')
url="http://undefined.org/python/#simplejson"
makedepends=('python' 'python2-distribute')
changelog=python-simplejson.changelog
source=($pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/tarball/v${pkgver})
md5sums=('fc9013eab6330514196a7f19c2cff386')

build() {
  true
}

package_python-simplejson() {
  depends=('python')

  cd ${srcdir}/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 ${srcdir}/simplejson-simplejson-*
  python2 setup.py install --root=${pkgdir}
  install -Dm644 ${srcdir}/simplejson-simplejson-*/LICENSE.txt \
    ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}