summaryrefslogtreecommitdiffstats
path: root/system/makepp/makepp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/makepp/makepp.SlackBuild')
-rw-r--r--system/makepp/makepp.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/system/makepp/makepp.SlackBuild b/system/makepp/makepp.SlackBuild
index 17164b658d..5cad881028 100644
--- a/system/makepp/makepp.SlackBuild
+++ b/system/makepp/makepp.SlackBuild
@@ -2,10 +2,11 @@
# Slackware build script for makepp
-# 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.
+# 20220316 bkw: derp. fix broken symlinks.
# 20210824 bkw: update for v2.0.99.2, aka 2.1rc1, because 2.0 won't
# build on -current and other distros have been shipping 2.1 betas and
# release candidates for years now.
@@ -14,7 +15,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=makepp
VERSION=${VERSION:-2.0.99.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -60,6 +61,14 @@ perl install.pl \
none \
$PKG
+# 20220316 bkw: install.pl's symlinks are absolute, pointing to $PKG.
+# Make them relative. This code only works because the link targets
+# are in the same directories as the links.
+for link in $( find -P $PKG -type l); do
+ target="$( realpath $link )"
+ rm -f $link; ln -s $( basename $target ) $link
+done
+
# in 2.0.99.2, they're already gzipped.
#gzip -9 $PKG/usr/man/man1/*.1