aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-11 22:10:17 +0300
committerprspkt <prspkt@protonmail.com>2019-06-13 00:16:57 +0300
commitbf365af39c8573d2da7c47116b348b795686a5b1 (patch)
tree52ed4c176e6956a283ba216ade62cacb75c985ee
parent7ae1517b579b31b082270121bd6aa7fb9fac1b6c (diff)
downloadaports-bf365af39c8573d2da7c47116b348b795686a5b1.tar.bz2
aports-bf365af39c8573d2da7c47116b348b795686a5b1.tar.xz
testing/py-yapsy: drop python2
-rw-r--r--testing/py3-yapsy/APKBUILD (renamed from testing/py-yapsy/APKBUILD)36
1 files changed, 7 insertions, 29 deletions
diff --git a/testing/py-yapsy/APKBUILD b/testing/py3-yapsy/APKBUILD
index 139c647ec7..26e3bea3a8 100644
--- a/testing/py-yapsy/APKBUILD
+++ b/testing/py3-yapsy/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-yapsy
+pkgname=py3-yapsy
_pkgname=Yapsy
pkgver=1.11.223
pkgrel=2
@@ -8,42 +8,20 @@ pkgdesc="DIY Python plugin management toolkit"
url="https://yapsy.sourceforge.net"
arch="noarch"
license="BSD-2-Clause"
-depends=""
-depends_dev=""
-makedepends="py-setuptools python2-dev python3-dev"
-install=""
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-yapsy" # Backwards compatibility
+provides="py-yapsy=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
package() {
- 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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="690d0ab78eafede5a75cf7b7bbcfce00b05c7b6f958980c3b67815bcaf848a8098b6e81afd1d95c5821fa4bb7affefab2cde208ff7c8ac7952615c8ddbafe305 Yapsy-1.11.223.tar.gz"