From 984693ccfd21e2d87fdfd3763d37ae128c6b400a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 5 Jul 2023 03:03:04 -0400 Subject: [PATCH] graphics/hp2xx: Handle /usr/info/dir. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- graphics/hp2xx/doinst.sh | 6 ++++++ graphics/hp2xx/hp2xx.SlackBuild | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 graphics/hp2xx/doinst.sh diff --git a/graphics/hp2xx/doinst.sh b/graphics/hp2xx/doinst.sh new file mode 100644 index 0000000000..1bef502028 --- /dev/null +++ b/graphics/hp2xx/doinst.sh @@ -0,0 +1,6 @@ +if [ -x /usr/bin/install-info -a -d usr/info ]; then + ( cd usr/info + rm -f dir + for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done + ) +fi diff --git a/graphics/hp2xx/hp2xx.SlackBuild b/graphics/hp2xx/hp2xx.SlackBuild index 79c9843c25..8eecefda6a 100644 --- a/graphics/hp2xx/hp2xx.SlackBuild +++ b/graphics/hp2xx/hp2xx.SlackBuild @@ -6,11 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230705 bkw: BUILD=2, handle /usr/info/dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hp2xx VERSION=${VERSION:-3.4.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -33,16 +35,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -83,6 +81,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/doinst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE