diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-31 17:48:55 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-31 17:48:55 +0200 |
commit | 055cf4cef8450bdcc13ec209761e469ef2c6d93c (patch) | |
tree | c6c1c1684174a338c6637f1ebb9dadbdbc481b36 /community/py-msgpack | |
parent | da6bb3c43587212a483147c98bdd9f32d8e5ec08 (diff) | |
download | aports-055cf4cef8450bdcc13ec209761e469ef2c6d93c.tar.bz2 aports-055cf4cef8450bdcc13ec209761e469ef2c6d93c.tar.xz |
community/py-msgpack: improve abuild and rebuild
Diffstat (limited to 'community/py-msgpack')
-rw-r--r-- | community/py-msgpack/APKBUILD | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/community/py-msgpack/APKBUILD b/community/py-msgpack/APKBUILD index bbdae50f34..5d0c65030f 100644 --- a/community/py-msgpack/APKBUILD +++ b/community/py-msgpack/APKBUILD @@ -3,17 +3,16 @@ pkgname=py-msgpack _pkgname=msgpack-python pkgver=0.4.8 -pkgrel=0 +pkgrel=1 pkgdesc="A Python module for MessagePack serialization/deserialization" url="http://pypi.python.org/pypi/msgpack-python/" arch="noarch" license="ASL 2.0" depends="" -makedepends="python2-dev py-setuptools python3-dev" +makedepends="python2-dev python3-dev py-setuptools" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -27,24 +26,23 @@ package() { _py() { local python=$1 - pkgdesc="$pkgdesc - $python" + pkgdesc="$pkgdesc (for $python)" arch="all" 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() { _py python3 } - - md5sums="dcd854fb41ee7584ebbf35e049e6be98 msgpack-python-0.4.8.tar.gz" sha256sums="1a2b19df0f03519ec7f19f826afb935b202d8979b0856c6fb3dc28955799f886 msgpack-python-0.4.8.tar.gz" sha512sums="59e9c43be6b92e6d10f40999e0902c350137e67a83c43bb15b273eca856a6eb39f24b625b02b40188a9365ce3101f03bfa9aa3dfff56c5c3b551533942183481 msgpack-python-0.4.8.tar.gz" |