diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/py-simplejson/APKBUILD | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main/py-simplejson/APKBUILD b/main/py-simplejson/APKBUILD index ea23df417b..8b596ee1f3 100644 --- a/main/py-simplejson/APKBUILD +++ b/main/py-simplejson/APKBUILD @@ -5,23 +5,23 @@ _pkgname=simplejson pkgver=3.14.0 pkgrel=0 pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python" -url="https://pypi.python.org/pypi/simplejson/" +url="https://pypi.python.org/pypi/simplejson" arch="all" license="MIT" depends="" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +makedepends="py-setuptools python2-dev python3-dev" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build || return 1 - python2 setup.py test || return 1 + python2 setup.py build + python2 setup.py test - python3 setup.py build || return 1 - python3 setup.py test || return 1 + python3 setup.py build + python3 setup.py test } package() { @@ -43,7 +43,7 @@ _py() { install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" rm -Rf "$subpkgdir"/usr/lib/python*/site-packages/simplejson/tests/ } |