diff options
author | prspkt <prspkt@protonmail.com> | 2018-07-17 06:38:28 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-18 16:55:29 +0000 |
commit | 0c5c038e23656bd8ae90257d6d52de95426e792e (patch) | |
tree | 24da44ded4da37a7ad0b3c61de9d79efc327ca0b | |
parent | 0138a4ad5612d57990bcccd4af4a71427c9581d0 (diff) | |
download | aports-0c5c038e23656bd8ae90257d6d52de95426e792e.tar.bz2 aports-0c5c038e23656bd8ae90257d6d52de95426e792e.tar.xz |
testing/py-yapsy: add python3
-rw-r--r-- | testing/py-yapsy/APKBUILD | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/testing/py-yapsy/APKBUILD b/testing/py-yapsy/APKBUILD index f63bfa79c3..37eb2b3a63 100644 --- a/testing/py-yapsy/APKBUILD +++ b/testing/py-yapsy/APKBUILD @@ -3,16 +3,16 @@ pkgname=py-yapsy _pkgname=Yapsy pkgver=1.11.223 -pkgrel=0 +pkgrel=1 pkgdesc="A DIY Python plugin management toolkit" url="http://yapsy.sourceforge.net" arch="noarch" license="BSD" -depends="python2" +depends="" depends_dev="" -makedepends="python2-dev py-setuptools" +makedepends="py-setuptools python2-dev python3-dev" install="" -subpackages="" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver @@ -29,13 +29,30 @@ prepare() { build() { cd "$_builddir" python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _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" } -md5sums="d8b71cd35e6daa36ae83f76874f450aa Yapsy-1.11.223.tar.gz" -sha256sums="45bb39a72461913388d7f3e92ce33816e84fff59946c45e16796eb1fb1d5f2a6 Yapsy-1.11.223.tar.gz" sha512sums="690d0ab78eafede5a75cf7b7bbcfce00b05c7b6f958980c3b67815bcaf848a8098b6e81afd1d95c5821fa4bb7affefab2cde208ff7c8ac7952615c8ddbafe305 Yapsy-1.11.223.tar.gz" |