summaryrefslogtreecommitdiff
path: root/system/ranger
diff options
context:
space:
mode:
Diffstat (limited to 'system/ranger')
-rw-r--r--system/ranger/ranger.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/system/ranger/ranger.SlackBuild b/system/ranger/ranger.SlackBuild
index f7eb3b046d..a0e8662992 100644
--- a/system/ranger/ranger.SlackBuild
+++ b/system/ranger/ranger.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=ranger
VERSION=${VERSION:-1.9.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,17 @@ find -L . \
-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,\\\\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
@@ -83,7 +94,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/ranger $PKG/usr/doc/$PRGNAM-$VERSION
rm -fr $PKG/usr/share
-cp -a AUTHORS *.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS *.md examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install