Commit 43ff74cc authored by Leo's avatar Leo

community/py3-msgpack: drop py2

parent 3b34f5d0
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-msgpack
pkgname=py3-msgpack
_pkgname=msgpack-python
pkgver=0.6.1
pkgrel=4
pkgrel=5
pkgdesc="A Python module for MessagePack serialization/deserialization"
url="https://msgpack.org/"
arch="all"
license="Apache-2.0"
makedepends="python2-dev python3-dev py-setuptools py3-setuptools
cython2 cython3"
depends="python3"
makedepends="python3-dev py3-setuptools cython3"
checkdepends="py3-pytest py3-pluggy"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="$_pkgname-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/v$pkgver.tar.gz"
builddir="$srcdir/msgpack-python-$pkgver"
replaces="py-msgpack" # Backwards compatibility
provides="py-msgpack=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python2 setup.py build
python3 setup.py build
}
......@@ -34,25 +35,7 @@ check() {
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="cce526f103b0e2698e1d3931f34c18ebfe79dedd486aa3d051ce80b80e0fc73dc5961645205525002b24990b1c74cb17bee4be1b7d7a45fb232cbf108f929982 msgpack-python-0.6.1.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment