diff options
-rw-r--r-- | office/freemind/freemind.SlackBuild | 12 | ||||
-rw-r--r-- | office/freemind/freemind.sh | 3 |
2 files changed, 7 insertions, 8 deletions
diff --git a/office/freemind/freemind.SlackBuild b/office/freemind/freemind.SlackBuild index 139b2ef3882ec..018df95ad795c 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 0000000000000..7252991788cfa --- /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+"$@"} |