summaryrefslogtreecommitdiffstats
path: root/misc/ssss/ssss.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ssss/ssss.SlackBuild')
-rw-r--r--misc/ssss/ssss.SlackBuild24
1 files changed, 16 insertions, 8 deletions
diff --git a/misc/ssss/ssss.SlackBuild b/misc/ssss/ssss.SlackBuild
index d40d69e115..27c75fc97f 100644
--- a/misc/ssss/ssss.SlackBuild
+++ b/misc/ssss/ssss.SlackBuild
@@ -26,6 +26,12 @@
# markus reichelt, email removed.
# 2011 Apr 07 - initial release
+# 20230911 bkw: update for v0.5.7.
+# - switch to MrJoy's fork, which has some minor enhancements.
+# - get rid of ssss.1.html: the existing one in our repo is outdated,
+# and the updated one doesn't build properly. it's the same content
+# as the man page, anyway, so redundant.
+
# 20230709 bkw: BUILD=2
# - new maintainer.
# - man page symlinks to the actual command names.
@@ -36,7 +42,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ssss
-VERSION=${VERSION:-0.5}
+VERSION=${VERSION:-0.5.7}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,9 +79,11 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-releases-v$VERSION
+# 20230911 bkw: since upstream puts a / in the tag name (releases/v0.5.7),
+# the magic github URL includes a "v" in the filename.
+tar xvf $CWD/$PRGNAM-releases-v$VERSION.tar.gz
+cd $PRGNAM-releases-v$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
@@ -84,6 +92,7 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
# need the Makefile patch, and the "man page" patch really patches the
# XML source to the man page, which doesn't help us because we can't
# rebuild the man page anyway.
+# 20230911 bkw: no longer need the memset patch, upstream applied it already.
for i in $( cat $CWD/patches/series ); do
patch -p1 < $CWD/patches/$i
done
@@ -100,6 +109,8 @@ sed -i "s/-O2/${SLKCFLAGS}/" Makefile
# 20230709 bkw: 'make ssss.1' is supposed to build the man page, but
# fails. Original script author included the man page with the
# script. We can't do "make" with no argument here...
+# 20230911 bkw: MrJoy's fork has a 'make install', but it doesn't do
+# what we want. Manual install still works.
make ssss-split
# 20230709 bkw: ssss-combine is just a symlink.
@@ -112,10 +123,7 @@ gzip -9c < $CWD/ssss.1 > $PKGMAN1/ssss.1.gz
ln -s ssss.1.gz $PKGMAN1/ssss-split.1.gz
ln -s ssss.1.gz $PKGMAN1/ssss-combine.1.gz
-# 20230709 bkw: ssss.1.html is the same content as the man page, don't
-# really need, but it's been in the package for ~11 years, so leave it.
-cp -a HISTORY LICENSE THANKS doc.html $PKGDOC
-cat $CWD/ssss.1.html > $PKGDOC/ssss.1.html
+cp -a README* HISTORY* LICENSE* THANKS* doc.html $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install