summaryrefslogtreecommitdiffstats
path: root/graphics/hp2xx
diff options
context:
space:
mode:
author B. Watson2023-07-05 09:03:04 +0200
committer Willy Sudiarto Raharjo2023-07-08 11:42:07 +0200
commit984693ccfd21e2d87fdfd3763d37ae128c6b400a (patch)
tree4af099b78d1d09b7735e7508480997004a0ae971 /graphics/hp2xx
parent14ef024e64b27202b0ae4e29fa46c8af6d63f830 (diff)
downloadslackbuilds-984693ccfd21e2d87fdfd3763d37ae128c6b400a.tar.gz
graphics/hp2xx: Handle /usr/info/dir.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/hp2xx')
-rw-r--r--graphics/hp2xx/doinst.sh6
-rw-r--r--graphics/hp2xx/hp2xx.SlackBuild10
2 files changed, 11 insertions, 5 deletions
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