aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/py3-simplegeneric/APKBUILD (renamed from testing/py-simplegeneric/APKBUILD)34
-rw-r--r--testing/py3-simplegeneric/remove-setup-warning.patch (renamed from testing/py-simplegeneric/remove-setup-warning.patch)0
2 files changed, 7 insertions, 27 deletions
diff --git a/testing/py-simplegeneric/APKBUILD b/testing/py3-simplegeneric/APKBUILD
index 3047f895e3..8fc915665e 100644
--- a/testing/py-simplegeneric/APKBUILD
+++ b/testing/py3-simplegeneric/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
-pkgname=py-simplegeneric
+pkgname=py3-simplegeneric
pkgver=0.8.1
pkgrel=0
pkgdesc="Simple generic functions"
@@ -8,46 +8,26 @@ url="https://pypi.org/project/simplegeneric/"
arch="noarch"
license="ZPL-2.1"
makedepends="python2-dev python3-dev"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-$pkgver.zip
remove-setup-warning.patch"
-builddir="$srcdir/${pkgname#py-}-$pkgver"
+builddir="$srcdir/${pkgname#py3-}-$pkgver"
+replaces="py-simplegeneric"
+provides="py-simplegeneric"
build() {
cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
-package() {
- cd "$builddir"
- mkdir -p "$pkgdir"
-}
-
check() {
cd "$builddir"
- python2 simplegeneric.py
python3 simplegeneric.py
}
-_py2() {
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
+package() {
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
+
sha512sums="74c25d4e04fe197058cb43fabe3702cc5901989dc0b0bcf7511369f4f3d90fd98e4225174db0680c8f39389914f82824bdbdaf4c302b53998fbabbf0dba393e4 simplegeneric-0.8.1.zip
8558e711659fc2bc76cf8a770a0950778fa7d0b11165fdca0ac444575de3efdd3ae5bdc37351ce532b6d9245eee9e06fe8c614e23f3db709e5a53debe424e4fd remove-setup-warning.patch"
diff --git a/testing/py-simplegeneric/remove-setup-warning.patch b/testing/py3-simplegeneric/remove-setup-warning.patch
index cbb4c7a692..cbb4c7a692 100644
--- a/testing/py-simplegeneric/remove-setup-warning.patch
+++ b/testing/py3-simplegeneric/remove-setup-warning.patch