system/ranger: Fix man page and add examples

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2019-03-04 23:53:33 +00:00 committed by Willy Sudiarto Raharjo
parent 38931025e4
commit 30aeaefb2f
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 13 additions and 2 deletions

View File

@ -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