aboutsummaryrefslogtreecommitdiff
path: root/system/ranger/ranger.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ranger/ranger.SlackBuild')
-rw-r--r--system/ranger/ranger.SlackBuild7
1 files changed, 2 insertions, 5 deletions
diff --git a/system/ranger/ranger.SlackBuild b/system/ranger/ranger.SlackBuild
index a016f269c682..8cc3118173eb 100644
--- a/system/ranger/ranger.SlackBuild
+++ b/system/ranger/ranger.SlackBuild
@@ -70,20 +70,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-[ "$PYTHON3" = "yes" ] && PY=3
-PYVER=$(python$PY -V 2>&1 | sed -nr "s,.* ([0-9]\.[0-9]).*,\1,p")
-
# Fix some incorrect paths in man page
sed -i "
s,doc/configs,/usr/doc/$PRGNAM-$VERSION/config,
- s,usr/share/doc/ranger/config,usr/lib64/python$PYVER/site-packages/ranger/config,
+ s,usr/share/doc/ranger/config,usr/lib64/python3/site-packages/ranger/config,
s,\\\\fIexamples,\\\\fI/usr/doc-$PRGNAM-$VERSION/examples,
s,They are usually installed to,,
0,/\\\\&\\\\fI\/usr\/share\/doc\/ranger\/examples\\\\fR./s,,,
s,/usr/share/doc/ranger/examples/,/usr/doc-$PRGNAM-$VERSION/examples,
" doc/ranger.1
-python$PY setup.py install -O1 --root=$PKG
+python3 setup.py install -O1 --root=$PKG
mv $PKG/usr/share/man $PKG/usr