aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-22 17:49:22 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-22 17:49:22 +0100
commitc536001053c6576976c99285d8c9a5a867aabeb0 (patch)
tree7bfd716453d362f1cab3aa5ac2740d0ae502a197
parentd299e24ad7e7d82aa887149dcb8496db0a2001d9 (diff)
downloadaports-c536001053c6576976c99285d8c9a5a867aabeb0.tar.gz
aports-c536001053c6576976c99285d8c9a5a867aabeb0.tar.bz2
aports-c536001053c6576976c99285d8c9a5a867aabeb0.tar.xz
main/py3-sphinx: install commands with -3 suffix
-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"