aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 12:39:05 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 12:48:51 +0100
commit4da557640a3629cc80e6bba2c90ad13cdb298d59 (patch)
tree06a871981ee03d25ca52e6f73ebb2b2db947ecc3
parentaf6ae234144c13bf121c3e3660d1f1e5b696a6e4 (diff)
downloadaports-4da557640a3629cc80e6bba2c90ad13cdb298d59.tar.bz2
aports-4da557640a3629cc80e6bba2c90ad13cdb298d59.tar.xz
main/py3-alabaster: drop python2
-rw-r--r--main/py3-alabaster/APKBUILD39
1 files changed, 10 insertions, 29 deletions
diff --git a/main/py3-alabaster/APKBUILD b/main/py3-alabaster/APKBUILD
index 7250c842a5..472b9108e9 100644
--- a/main/py3-alabaster/APKBUILD
+++ b/main/py3-alabaster/APKBUILD
@@ -1,46 +1,27 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-alabaster
+pkgname=py3-alabaster
_pkgname=alabaster
pkgver=0.7.12
-pkgrel=2
+pkgrel=3
pkgdesc="Modified Kr Sphinx doc theme"
url="https://github.com/bitprophet/alabaster"
arch="noarch"
-license="BSD"
-depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+license="BSD-3-Clause"
+depends="python3"
+makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bitprophet/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-alabaster" # Backwards compatibility
+provides="py-alabaster=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ 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="e6bcfbf02ee83eaa33c71b8a3d1cb767cc4bfc2b95f79a86a59292988e28abea32a7d55be9a9cdfa9592efed5de3afd7604f9bb65e1f90ba5f377ec54d540f9e alabaster-0.7.12.tar.gz"