diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-23 10:45:48 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-23 10:45:48 +0000 |
commit | f4c2d836dd6c3ba8beb17b8f4231102080993bc1 (patch) | |
tree | 9d623b2cbd9b7953c16c12329c4f310331fc8279 | |
parent | 1140f515941e78b811ddc78e9ddf49dc931be6b0 (diff) | |
download | aports-f4c2d836dd6c3ba8beb17b8f4231102080993bc1.tar.bz2 aports-f4c2d836dd6c3ba8beb17b8f4231102080993bc1.tar.xz |
community/py-msgpack: upgrade to 0.4.8, moved from testing, added python3 support, added py2/py3 subpackages
-rw-r--r-- | community/py-msgpack/APKBUILD | 50 | ||||
-rw-r--r-- | testing/py-msgpack/APKBUILD | 30 |
2 files changed, 50 insertions, 30 deletions
diff --git a/community/py-msgpack/APKBUILD b/community/py-msgpack/APKBUILD new file mode 100644 index 0000000000..bbdae50f34 --- /dev/null +++ b/community/py-msgpack/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-msgpack +_pkgname=msgpack-python +pkgver=0.4.8 +pkgrel=0 +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" +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 + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $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" +} + +_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" diff --git a/testing/py-msgpack/APKBUILD b/testing/py-msgpack/APKBUILD deleted file mode 100644 index 98b31f0cb3..0000000000 --- a/testing/py-msgpack/APKBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# Contributor: Francesco Colista <fcolista@alpinelinux.org> -# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-msgpack -_pkgname=msgpack-python -pkgver=0.4.7 -pkgrel=0 -pkgdesc="A Python module for MessagePack serialization/deserialization" -url="http://pypi.python.org/pypi/msgpack-python/" -arch="all" -license="ASL 2.0" -depends="python" -depends_dev="" -makedepends="python-dev py-setuptools" -subpackages="" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver -build () { - cd "$_builddir" - python setup.py build || return 1 -} - -package() { - cd "$_builddir" - python setup.py install --root="$pkgdir" || return 1 -} - -md5sums="eb2aad1081534ef3a9f32a0ecd350b9b msgpack-python-0.4.7.tar.gz" -sha256sums="5e001229a54180a02dcdd59db23c9978351af55b1290c27bc549e381f43acd6b msgpack-python-0.4.7.tar.gz" -sha512sums="10cc51c5f46a908953298071a46a790b9b78a577e37abd546c76f72386c3847885e36523680c86b9a13fb099fc2a17c3c7a0119c750ac5e7081c72df3ebd7a7e msgpack-python-0.4.7.tar.gz" |