summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-06-06 13:44:32 +0000
committer Eric Hameleers <alien@slackware.com>2012-06-06 13:44:32 +0000
commitf65a91c4d10aa4d22f75babcb7085f17400725b0 (patch)
tree32e956350310523d802fa8f0e236948797c5d8c0
parent10680db3d160e235cbdd7e6c19875d5ea27d61a9 (diff)
downloadasb-f65a91c4d10aa4d22f75babcb7085f17400725b0.tar.gz
asb-f65a91c4d10aa4d22f75babcb7085f17400725b0.tar.xz
Fix the two .desktop items - the binaries' path was incorrect
-rwxr-xr-xopenjdk/build/openjdk.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/openjdk/build/openjdk.SlackBuild b/openjdk/build/openjdk.SlackBuild
index 500cabbd..f4112469 100755
--- a/openjdk/build/openjdk.SlackBuild
+++ b/openjdk/build/openjdk.SlackBuild
@@ -29,7 +29,7 @@ JAVABLD=b21
ICEDTEA=2.2
VERSION="${JAVAVER}_${JAVABLD}"
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:--j6}
@@ -253,6 +253,12 @@ mkdir -p ${PKG1}/usr/share/applications
install -m644 *.desktop ${PKG1}/usr/share/applications/
mkdir -p ${PKG2}/usr/share/applications
install -m644 *.desktop ${PKG2}/usr/share/applications/
+# We do not create symlinks for binaries in /usr/bin , instead we add the
+# Java directory to the $PATH :
+for FILE in ${PKG1}/usr/share/applications/*.desktop \
+ ${PKG2}/usr/share/applications/*.desktop ; do
+ sed -i -e "s,^Exec=/usr/bin/,Exec=," $FILE
+done
# User-modifiable configuration files go to /etc :
mkdir -p $PKG1/etc/java $PKG2/etc/java