diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 03:20:55 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 07:04:04 -0300 |
| commit | 4c72d5d334dd5dcfdb2fc7cc027c3b8d0b61077f (patch) | |
| tree | 3d8dc60883e7240ba3858c78d2c2d5a1a6fc123d /testing/py3-u-msgpack | |
| parent | aaa5e4069a788f976e6e5efc023d575671023e5d (diff) | |
| download | aports-4c72d5d334dd5dcfdb2fc7cc027c3b8d0b61077f.tar.bz2 aports-4c72d5d334dd5dcfdb2fc7cc027c3b8d0b61077f.tar.xz | |
testing/py3-u-msgpack: rename from py-u-msgpack
Diffstat (limited to 'testing/py3-u-msgpack')
| -rw-r--r-- | testing/py3-u-msgpack/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/py3-u-msgpack/APKBUILD b/testing/py3-u-msgpack/APKBUILD new file mode 100644 index 0000000000..3d283a8835 --- /dev/null +++ b/testing/py3-u-msgpack/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Stefan Wagner <stw@bit-strickerei.de> +# Maintainer: Stefan Wagner <stw@bit-strickerei.de> +pkgname=py-u-msgpack +_pkgname=u-msgpack-python +pkgver=2.5.1 +pkgrel=1 +pkgdesc="A portable, lightweight MessagePack serializer and deserializer written in pure Python." +url="https://github.com/vsergeev/u-msgpack-python" +arch="noarch" +license="MIT" +depends="" +checkdepends="pytest" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="$pkgname-$pkgver.tar.gz::https://github.com/vsergeev/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + 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" +} + +sha512sums="a39e052b2776e271f177eebae6d18110ee62748ae4394c7c3fce71cdf7baa8371b468d5a6dcaf56491c6429b3b3bd805949c198b526c9e3a8f28949fe3915a40 py-u-msgpack-2.5.1.tar.gz" |
