aboutsummaryrefslogtreecommitdiff
path: root/office/freemind
diff options
context:
space:
mode:
authorBruno T. Russo (BrunoRusso) <contato@brunorusso.eti.br>2011-02-06 02:38:47 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-02-06 02:38:47 -0600
commit441e4ab66f6ac0e0579f6b82fc4f7e2d9a07a10b (patch)
treeb66b28047c6bc339e05cb3dce53d6f9746cad09c /office/freemind
parent981ba864e34590448f92ef03ec2ad79d2d8b449b (diff)
office/freemind: use a wrapper instead of symlink to launch
Thanks to Vincent Batts. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/freemind')
-rw-r--r--office/freemind/freemind.SlackBuild12
-rw-r--r--office/freemind/freemind.sh3
2 files changed, 7 insertions, 8 deletions
diff --git a/office/freemind/freemind.SlackBuild b/office/freemind/freemind.SlackBuild
index 139b2ef3882e..018df95ad795 100644
--- a/office/freemind/freemind.SlackBuild
+++ b/office/freemind/freemind.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for freemind
-# Copyright 2009 BrunoRusso, Sao Paulo, Brazil
+# Copyright 2009,2011 BrunoRusso, Sao Paulo, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -29,7 +29,7 @@
PRGNAM=freemind
VERSION=${VERSION:-0.8.1}
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRC_VERSION=$(echo $VERSION | tr . _)
@@ -46,13 +46,9 @@ mkdir -p $TMP $PKG/opt/$PRGNAM $OUTPUT
cd $TMP
unzip $CWD/freemind-bin-max-$SRC_VERSION.zip -d $PKG/opt/$PRGNAM
-# Make a symlink in /usr/bin
+# Make a wrapper in /usr/bin
mkdir -p $PKG/usr/bin
-cat << EOF > $PKG/usr/bin/$PRGNAM
-#!/bin/sh
-cd /opt/freemind
-./freemind.sh
-EOF
+cat $CWD/freemind.sh > $PKG/usr/bin/freemind
chmod 0755 $PKG/opt/freemind $PKG/opt/freemind/*.sh $PKG/usr/bin/freemind
# Install desktop file, icon, and mimetype files
diff --git a/office/freemind/freemind.sh b/office/freemind/freemind.sh
new file mode 100644
index 000000000000..7252991788cf
--- /dev/null
+++ b/office/freemind/freemind.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+export FREEMIND_BASE_DIR="/opt/freemind"
+${FREEMIND_BASE_DIR}/freemind.sh ${1+"$@"}