diff options
author | Dave Woodfall <dave@tty1.uk> | 2019-03-04 23:53:33 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-16 06:51:54 +0700 |
commit | 30aeaefb2f1666d069c8303abdc18c9cf048e484 (patch) | |
tree | fc4f00dfae0a719b2d8c77f4b0603854bd916efd /system | |
parent | 38931025e41e7d4ac7e67c85a3a789e63f685db5 (diff) | |
download | slackbuilds-30aeaefb2f1666d069c8303abdc18c9cf048e484.tar.gz |
system/ranger: Fix man page and add examples
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/ranger/ranger.SlackBuild | 15 |
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 |