2014-05-07 06:03:20 +08:00
|
|
|
# Maintainer: Manuel "UtG" <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
|
|
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
|
|
|
|
pkgbase=python-simplejson
|
|
|
|
pkgname=('python2-simplejson' 'python3-simplejson')
|
2016-03-17 05:36:13 +08:00
|
|
|
pkgver=3.8.2
|
2014-05-07 06:03:20 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
|
|
|
|
license=('MIT')
|
|
|
|
arch=('x86_64')
|
|
|
|
url='http://undefined.org/python/#simplejson'
|
|
|
|
makedepends=('python2-setuptools' 'python3-setuptools')
|
2016-03-17 05:36:13 +08:00
|
|
|
source=("git://github.com/simplejson/simplejson.git#tag=v$pkgver")
|
|
|
|
md5sums=('SKIP')
|
2014-05-07 06:03:20 +08:00
|
|
|
|
|
|
|
package_python2-simplejson() {
|
|
|
|
depends=('python2')
|
|
|
|
replaces=(python-simplejson)
|
|
|
|
provides=(python-simplejson)
|
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
cd simplejson
|
2014-05-07 06:03:20 +08:00
|
|
|
python2 setup.py install --root=${pkgdir}
|
|
|
|
|
|
|
|
# License
|
2016-03-17 05:36:13 +08:00
|
|
|
install -Dm644 "$srcdir/simplejson/LICENSE.txt" \
|
2014-05-07 06:03:20 +08:00
|
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python3-simplejson() {
|
|
|
|
depends=('python3')
|
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
cd simplejson
|
2014-05-07 06:03:20 +08:00
|
|
|
python3 setup.py install --root="$pkgdir"
|
|
|
|
|
|
|
|
# License
|
2016-03-17 05:36:13 +08:00
|
|
|
install -Dm644 "$srcdir/simplejson/LICENSE.txt" \
|
2014-05-07 06:03:20 +08:00
|
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2014-09-07 02:06:09 +08:00
|
|
|
}
|