aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/py3-sphinx/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/py3-sphinx/APKBUILD b/main/py3-sphinx/APKBUILD
index 69406f8791..0b38c21fa1 100644
--- a/main/py3-sphinx/APKBUILD
+++ b/main/py3-sphinx/APKBUILD
@@ -3,7 +3,7 @@
pkgname=py3-sphinx
_pkgname=${pkgname#py3-}
pkgver=2.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="Python Documentation Generator"
url="http://sphinx.pocoo.org/"
arch="noarch"
@@ -30,6 +30,15 @@ check() {
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ local path; for path in "$pkgdir"/usr/bin/*; do
+ mv "$path" "$path"-3
+ done
+
+ cd "$pkgdir"/usr/bin
+ local name; for name in *-3; do
+ ln -s -- $name "$pkgdir"/usr/bin/${name%-3}
+ done
}
sha512sums="d3f3f89ddf7d007ac271e6351223852918f028ba0ce39f06f4a75babeb4525cdc65c625162b2d1e732db448f77aeb9cae656eb484a7c9eab7ad6dd563b92fe52 sphinx-2.2.1.tar.gz"