diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-09 03:11:42 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 20:51:45 +0100 |
commit | dbfa57e8cc7a068bc4e2469f5f5194aefb42e265 (patch) | |
tree | f5c4a2e5c4b8022bd636351a6769e2f5ccb74e30 /community/py-jsonrpclib | |
parent | 7dbade2cc3ae1cb844f31f4b810bd6b422518a21 (diff) | |
download | aports-dbfa57e8cc7a068bc4e2469f5f5194aefb42e265.tar.bz2 aports-dbfa57e8cc7a068bc4e2469f5f5194aefb42e265.tar.xz |
community/py-jsonrpclib: fix and clean-up abuild
Diffstat (limited to 'community/py-jsonrpclib')
-rw-r--r-- | community/py-jsonrpclib/APKBUILD | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/community/py-jsonrpclib/APKBUILD b/community/py-jsonrpclib/APKBUILD index b1ba6b0e88..03344e64b9 100644 --- a/community/py-jsonrpclib/APKBUILD +++ b/community/py-jsonrpclib/APKBUILD @@ -1,24 +1,23 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-jsonrpclib +_pkgname=jsonrpclib pkgver=0.1.7 -pkgrel=1 +pkgrel=2 pkgdesc="A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax" url="https://github.com/joshmarshall/jsonrpclib" arch="noarch" -license="APACHE2.0" +license="ASL 2.0" depends="" makedepends="python2-dev py-setuptools python3-dev" -install="" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" -source="$pkgname-$pkgver.tar.gz::https://github.com/joshmarshall/${pkgname/py-/}/archive/v$pkgver.tar.gz" - -builddir="$srcdir"/${pkgname/py-/}-$pkgver +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="$pkgname-$pkgver.tar.gz::https://github.com/joshmarshall/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build || return 1 } package() { @@ -26,16 +25,18 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |