summaryrefslogtreecommitdiffstats
path: root/development/rmac/rmac.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/rmac/rmac.SlackBuild')
-rw-r--r--development/rmac/rmac.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/development/rmac/rmac.SlackBuild b/development/rmac/rmac.SlackBuild
index b8370ce1c7..b1d39b41ac 100644
--- a/development/rmac/rmac.SlackBuild
+++ b/development/rmac/rmac.SlackBuild
@@ -2,19 +2,24 @@
# Slackware build script for rmac
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# Upstream doesn't do source release tarballs, see git2targz.sh.
+# 20230103 bkw:
+# - update for v2.2.14_20221221.
+# - convert rst doc to html.
+
+# 20210907 bkw: update for v2.1.12_20210820.
# 20180922 bkw:
# - updated for v1.13.5_20180603, had to add -j1 to make command.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rmac
-VERSION=${VERSION:-1.13.5_20180603}
+VERSION=${VERSION:-2.2.14_20221221}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -27,9 +32,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -92,9 +94,10 @@ cd -
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+# rst2html is part of Slackware now, use it.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
ln -s ../../share/$PRGNAM/examples $PKG/usr/doc/$PRGNAM-$VERSION/examples
-cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+rst2html.py docs/rmac.rst > $PKG/usr/doc/$PRGNAM-$VERSION/rmac.html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install