diff options
author | Bruno T. Russo (BrunoRusso) <contato@brunorusso.eti.br> | 2011-02-06 02:38:47 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-02-06 02:38:47 -0600 |
commit | 441e4ab66f6ac0e0579f6b82fc4f7e2d9a07a10b (patch) | |
tree | b66b28047c6bc339e05cb3dce53d6f9746cad09c /office/freemind/freemind.SlackBuild | |
parent | 981ba864e34590448f92ef03ec2ad79d2d8b449b (diff) | |
download | slackbuilds-441e4ab66f6ac0e0579f6b82fc4f7e2d9a07a10b.tar.gz |
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/freemind.SlackBuild')
-rw-r--r-- | office/freemind/freemind.SlackBuild | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/office/freemind/freemind.SlackBuild b/office/freemind/freemind.SlackBuild index 139b2ef388..018df95ad7 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 |