aboutsummaryrefslogtreecommitdiff
path: root/audio/tuxguitar/tuxguitar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tuxguitar/tuxguitar.SlackBuild')
-rw-r--r--audio/tuxguitar/tuxguitar.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/audio/tuxguitar/tuxguitar.SlackBuild b/audio/tuxguitar/tuxguitar.SlackBuild
index 3926334f2b8de..bd4f21614b5de 100644
--- a/audio/tuxguitar/tuxguitar.SlackBuild
+++ b/audio/tuxguitar/tuxguitar.SlackBuild
@@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tuxguitar
VERSION=${VERSION:-1.6.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,14 +74,17 @@ cd ..
mv "$TMP/$PRGNAM-$VERSION-linux-swt-$BINARCH" "$PKG/opt/$PRGNAM"
#link to /usr
-
ln -sf "/opt/$PRGNAM/$PRGNAM.sh" "$PKG/usr/bin/$PRGNAM"
-
ln -sf "/opt/$PRGNAM/share/applications/tuxguitar.desktop" \
"$PKG/usr/share/applications/tuxguitar.desktop"
+ln -sf "/opt/$PRGNAM/share/pixmaps/tuxguitar.png" \
+ "$PKG/usr/share/pixmaps/tuxguitar.png"
+
+# ensure we actually use zulu-openjdk11
+sed -i '4i source /etc/profile.d/zulu-openjdk11.sh' $PKG/opt/$PRGNAM/$PRGNAM.sh
-ln -sf "/opt/$PRGNAM/share/pixmaps/tuxguitar.xpm" \
- "$PKG/usr/share/pixmaps/tuxguitar.xpm"
+# ensure ELF binaries/libraries are executable
+chmod +x $PKG/opt/tuxguitar/lib/libtuxguitar-*.so
find $PKG/opt/$PRGNAM/share/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/opt/$PRGNAM/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done