diff options
Diffstat (limited to 'testing/py-cjson')
-rw-r--r-- | testing/py-cjson/APKBUILD | 29 |
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" |