aboutsummaryrefslogtreecommitdiff
path: root/office/moneydance/moneydance.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-09-27 20:20:20 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-28 21:29:46 -0500
commitd0b25bf9faa18cdf0cfc0894bebe4e2d97f3a240 (patch)
treebedbb12ce9488989b711b3f01a2a9a3f2195e564 /office/moneydance/moneydance.SlackBuild
parentdbb548f12d28982625fa8ad892b9dacfed7d5452 (diff)
office/moneydance: Updated for version 2012.820.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/moneydance/moneydance.SlackBuild')
-rw-r--r--office/moneydance/moneydance.SlackBuild42
1 files changed, 29 insertions, 13 deletions
diff --git a/office/moneydance/moneydance.SlackBuild b/office/moneydance/moneydance.SlackBuild
index 9ec8352f6a8f..b98bfd9f0057 100644
--- a/office/moneydance/moneydance.SlackBuild
+++ b/office/moneydance/moneydance.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for moneydance
-# Copyright 2008-2011 Robby Workman, Northport, AL, USA
+# Copyright 2008-2012 Robby Workman, Northport, AL, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,34 +23,50 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=moneydance
-VERSION=2011_b803
+VERSION=${VERSION:-2012.820}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ARCH=noarch # Leave this alone for moneydance
+case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ MDARCH=x86
+elif [ "$ARCH" = "x86_64" ]; then
+ MDARCH=amd64
+else
+ printf "$ARCH is not supported.\n"; exit 1
+fi
+
set -e
rm -rf $PKG
mkdir -p $PKG/opt $OUTPUT
-tar xvf $CWD/moneydance_other.tar.gz -C $PKG/opt
+tar xvf $CWD/Moneydance_linux_${MDARCH}.tar.gz -C $PKG/opt
+
+mkdir -p $PKG/usr/bin
+ln -s /opt/Moneydance/Moneydance $PKG/usr/bin/moneydance
+ln -s /opt/Moneydance/Moneydance $PKG/usr/bin
+
+mkdir -p $PKG/usr/share/applications
+cat $CWD/moneydance.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-install -D -m 0644 $CWD/moneydance.desktop \
- $PKG/usr/share/applications/$PRGNAM.desktop
-mkdir $PKG/usr/share/pixmaps
-( cd $PKG/usr/share/pixmaps ; ln -s ../../../opt/moneydance/moneydance.png . )
-( cd $PKG/usr/share/pixmaps ; ln -s ../../../opt/moneydance/moneydance.xpm . )
+mkdir -p $PKG/usr/share/pixmaps
+ln -s /opt/Moneydance/resources/moneydance_icon32.png \
+ $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-( cd $PKG/usr/doc/$PRGNAM-$VERSION
- ln -s ../../../opt/moneydance/license.txt .
- cat $CWD/moneydance.SlackBuild > moneydance.SlackBuild
-)
+ln -s /opt/Moneydance/resources/license.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc