diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-04-03 16:27:06 -0400 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-05 11:55:29 +0000 |
commit | 004faadb804af1a5370ae5acbf58322c3df1f7b1 (patch) | |
tree | bf783ecd6e2f30bd2b8537e076261983e16eb7ea /testing | |
parent | 7ebf1027b2603edbd0b52b17c0e09f3fb8722321 (diff) | |
download | aports-004faadb804af1a5370ae5acbf58322c3df1f7b1.tar.bz2 aports-004faadb804af1a5370ae5acbf58322c3df1f7b1.tar.xz |
testing/py-pyro4: new APKBUILD
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-pyro4/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/py-pyro4/APKBUILD b/testing/py-pyro4/APKBUILD new file mode 100644 index 0000000000..1eda79ead8 --- /dev/null +++ b/testing/py-pyro4/APKBUILD @@ -0,0 +1,60 @@ +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=py-pyro4 +_pyname=Pyro4 +pkgver=4.75 +pkgrel=0 +pkgdesc="Python remote objects" +url="http://pyro4.readthedocs.io/" +arch="noarch" +license="MIT" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +_py2_deps="py2-serpent" +_py3_deps="py3-serpent" +makedepends="$_py2_deps $_py3_deps python2 python3 py2-setuptools py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir=$srcdir/$_pyname-$pkgver + +prepare() { + cp -r "$builddir" "$builddir"-py2 +} + +build() { + cd "$builddir" + python3 setup.py build + cd "$builddir"-py2 + python2 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py test + cd "$builddir"-py2 + python2 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + depends="$_py2_deps" + cd "$builddir"-py2 + _py python2 +} + +_py3() { + depends="$_py3_deps" + cd "$builddir" + _py python3 +} + +_py() { + _python="$1" + pkgdesc="$pkgdesc (for $_python)" + depends="$depends $_python" + install_if="$pkgname=$pkgver-r$pkgrel $_python" + $_python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="ecbf514ad6c877eb3166cad2ec70e16b148995a93562d737e17a8f0e222c647dd352271c383c7ba3cdf41e4678f81af34a761e9e3a74ba2dc4984dc86c158b0f Pyro4-4.75.tar.gz" |