summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/texlive/texlive.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/office/texlive/texlive.SlackBuild b/office/texlive/texlive.SlackBuild
index b870dbae7d..f33177ed05 100644
--- a/office/texlive/texlive.SlackBuild
+++ b/office/texlive/texlive.SlackBuild
@@ -31,7 +31,7 @@
PRGNAM=texlive
SOURCEVERSION=20200327
VERSION=${VERSION:-2020.200608}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -161,8 +161,16 @@ chown -R root:root $PKG
chmod -R u+w,go-w,a+rX-st $PKG
# use symlinks/scripts from tlnet
-mv $PKG$TEXMFROOT/texmf-dist/linked_scripts/* $PKG/usr/bin
-rmdir $PKG$TEXMFROOT/texmf-dist/linked_scripts
+for link in $PKG$TEXMFROOT/texmf-dist/linked_scripts/* ;do \
+ if [ -e "$link" ]; then
+ ln -sf $TEXMFROOT/texmf-dist/linked_scripts/bin/${link##*/} $PKG/usr/bin/${link##*/}
+ else
+ mv $link $PKG/usr/bin/${link##*/}
+ fi
+done
+mkdir -p $PKG$TEXMFROOT/texmf-dist/bin
+mv $PKG$TEXMFROOT/texmf-dist/linked_scripts/* $PKG$TEXMFROOT/texmf-dist/bin
+mv $PKG$TEXMFROOT/texmf-dist/bin $PKG$TEXMFROOT/texmf-dist/linked_scripts
# set some paths
sed -i \