diff options
-rw-r--r-- | system/makepp/makepp.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/makepp/makepp.SlackBuild b/system/makepp/makepp.SlackBuild index 17164b658db5e..cb296d2ea63f9 100644 --- a/system/makepp/makepp.SlackBuild +++ b/system/makepp/makepp.SlackBuild @@ -6,6 +6,7 @@ # 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 |