aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2025-01-12 17:21:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-01-18 08:13:11 +0700
commitc202b8702f0aa1cfed8b8f4a5f90150cd96be090 (patch)
treec15813a543fb50b8ff7b284cc0ce6b1f59c58641 /office
parentf29ea2d65e4c5a6e54d30c7e4a93ddd110fa722b (diff)
office/gnucash: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/gnucash/README5
-rw-r--r--office/gnucash/gnucash.SlackBuild7
2 files changed, 12 insertions, 0 deletions
diff --git a/office/gnucash/README b/office/gnucash/README
index 414add1efb..109abe7741 100644
--- a/office/gnucash/README
+++ b/office/gnucash/README
@@ -18,3 +18,8 @@ If you want the SQL database integration, you must first have libdbi
and libdbi-drivers installed and pass DBI="yes" to the build script.
Look at the slackbuild script for a little "Easter egg".
+
+NOTE: You MUST remove any previous installation of gnucash before
+running this script, otherwise the build will fail.
+It is also STRONGLY recommended to remove the gnucash-docs package
+(if installed - after all, you ARE upgrading, right?)
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index 64ba9d9aad..ced3e5cca4 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -72,6 +72,13 @@ else
LIBDIRSUFFIX=""
fi
+# Check for a previous installation, and abort if found:
+if [ -e /usr/bin/gnucash ]; then
+ echo "Found a previous installation of gnucash!"
+ echo "Please remove it before running this script again."
+ exit 1
+fi
+
if [ "$DBI" = "yes" ]; then
DBIARGS="-DWITH_SQL=ON -DGNC_DBD_DIR=/usr/lib${LIBDIRSUFFIX}/dbd/"
echo " building with SQL integration enabled"