aboutsummaryrefslogtreecommitdiff
path: root/office/moneydance/moneydance.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2020-12-06 15:40:44 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-12 07:09:29 +0700
commitab2ee18691720456c24168546ee90569522823e9 (patch)
tree399109d7504e62fc0f0b6609b2158c51809a2ef9 /office/moneydance/moneydance.SlackBuild
parente06ac49397e54381ba46f46939b20dbd0d9267ef (diff)
office/moneydance: Updated for version 2021.2006.
This version only works on x86_64, so x86 users are out of luck. Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/moneydance/moneydance.SlackBuild')
-rw-r--r--office/moneydance/moneydance.SlackBuild25
1 files changed, 14 insertions, 11 deletions
diff --git a/office/moneydance/moneydance.SlackBuild b/office/moneydance/moneydance.SlackBuild
index 8d51115337093..3a4bf1be7202e 100644
--- a/office/moneydance/moneydance.SlackBuild
+++ b/office/moneydance/moneydance.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-#
+
# Slackware build script for moneydance
-# Copyright 2008-2017 Robby Workman, Tuscaloosa, AL, USA
+# Copyright 2008-2020 Robby Workman, Tuscaloosa, AL, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=moneydance
-VERSION=${VERSION:-2017.1597}
+VERSION=${VERSION:-2021.2006}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,9 +38,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
- MDARCH=x86
-elif [ "$ARCH" = "x86_64" ]; then
+if [ "$ARCH" = "x86_64" ]; then
MDARCH=amd64
else
printf "$ARCH is not supported.\n"; exit 1
@@ -48,13 +46,17 @@ fi
set -e
-rm -rf $PKG
-mkdir -p $PKG/opt $OUTPUT
-tar xvf $CWD/Moneydance_linux_${MDARCH}.tar.gz -C $PKG/opt
+rm -rf $TMP/$PRGNAM $PKG
+mkdir -p $TMP/$PRGNAM $PKG
+cd $TMP/$PRGNAM
+ar -x $CWD/${PRGNAM}_linux_amd64.deb
+tar xvf data.tar.bz2 -C $PKG
+
+rm -f $PKG/opt/Moneydance/create_desktop_file.sh
mkdir -p $PKG/usr/bin
ln -s /opt/Moneydance/Moneydance $PKG/usr/bin/moneydance
-ln -s /opt/Moneydance/Moneydance $PKG/usr/bin
+ln -s /opt/Moneydance/Moneydance $PKG/usr/bin/Moneydance
mkdir -p $PKG/usr/share/applications
cat $CWD/moneydance.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
@@ -65,8 +67,9 @@ ln -s /opt/Moneydance/resources/moneydance_icon32.png \
$PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/opt/Moneydance/README.md $PKG/usr/doc/$PRGNAM-$VERSION
ln -s /opt/Moneydance/resources/license.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION/license.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install