aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cjson
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 08:58:48 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 14:07:30 +0000
commitcfad1c6ef0507c5a4fdfe1a47e362f469bbfd28d (patch)
tree78df35063440e2a95afd7824e632a14b7dabe681 /testing/py-cjson
parent77ed67c9c742753fe9b0abf8e55450ea86102a8d (diff)
downloadaports-cfad1c6ef0507c5a4fdfe1a47e362f469bbfd28d.tar.bz2
aports-cfad1c6ef0507c5a4fdfe1a47e362f469bbfd28d.tar.xz
testing/py-cjson: license specified and other minor changes
Diffstat (limited to 'testing/py-cjson')
-rw-r--r--testing/py-cjson/APKBUILD29
1 files changed, 17 insertions, 12 deletions
diff --git a/testing/py-cjson/APKBUILD b/testing/py-cjson/APKBUILD
index b11f796f52..2c1313a7b4 100644
--- a/testing/py-cjson/APKBUILD
+++ b/testing/py-cjson/APKBUILD
@@ -1,25 +1,30 @@
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
-
pkgname=py-cjson
-_name=python-cjson
+_pkgname=python-cjson
pkgver=1.0.5
pkgrel=2
pkgdesc="Fast JSON encoder/decoder for Python"
-url="http://pypi.python.org/pypi/python-gnutls"
+url="https://pypi.python.org/pypi/python-cjson"
arch="all"
-license="PSF"
-depends="python"
-makedepends="python-dev"
-install=
+license="LGPL2+"
+depends=""
+makedepends="python-dev py-setuptools"
+install=""
subpackages=""
-source="http://pypi.python.org/packages/source/p/python-cjson/$_name-$pkgver.tar.gz"
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$srcdir"/$_name-$pkgver
- mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
- python setup.py install --root="$pkgdir"
- echo "/usr/lib/python2.6/site-packages/$_name-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_name.pth
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="4d55b66ecdf0300313af9d030d9644a3 python-cjson-1.0.5.tar.gz"
+sha256sums="85bbe7a9fb6617e24bb4dbef528af8ef6eae07f8809dcd05ec926142feca7714 python-cjson-1.0.5.tar.gz"
+sha512sums="ba47337df70e27a9d44daa96c1d4f8d1a846193486ad78279e29ae7016bb2adb9146c0926fb99c7312c6fe9fea63b6cf947ef2a8faea376e27e004bdd55fb0ed python-cjson-1.0.5.tar.gz"