summaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-04-02 11:09:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-02 18:19:10 +0700
commit5576370b271a63f71aa2032ce08eae612733263f (patch)
tree1ec31ee927cf07ee395fcfc834098d142e293d90 /office
parentd8866b1aa7eae359ed98b8b417ca8dd162887d6b (diff)
downloadslackbuilds-5576370b271a63f71aa2032ce08eae612733263f.tar.gz
office/gnucash: Updated for version 4.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/gnucash/gnucash-webkit2gtk-4.1.patch12
-rw-r--r--office/gnucash/gnucash.SlackBuild8
-rw-r--r--office/gnucash/gnucash.info8
3 files changed, 22 insertions, 6 deletions
diff --git a/office/gnucash/gnucash-webkit2gtk-4.1.patch b/office/gnucash/gnucash-webkit2gtk-4.1.patch
new file mode 100644
index 0000000000..015827402b
--- /dev/null
+++ b/office/gnucash/gnucash-webkit2gtk-4.1.patch
@@ -0,0 +1,12 @@
+diff -Nur gnucash-4.9.orig/CMakeLists.txt gnucash-4.9/CMakeLists.txt
+--- gnucash-4.9.orig/CMakeLists.txt 2021-12-17 16:17:34.000000000 -0500
++++ gnucash-4.9/CMakeLists.txt 2022-02-01 18:20:28.027299079 -0500
+@@ -211,7 +211,7 @@
+ pkg_check_modules (WEBKIT REQUIRED IMPORTED_TARGET webkitgtk-3.0)
+ set(WEBKIT1 1 CACHE INTERNAL "WebKitGtk")
+ else()
+- pkg_check_modules (WEBKIT REQUIRED IMPORTED_TARGET webkit2gtk-4.0>=2.14.0)
++ pkg_check_modules (WEBKIT REQUIRED IMPORTED_TARGET webkit2gtk-4.1>=2.14.0)
+ set(WEBKIT2 1 CACHE INTERNAL "WebKit2Gtk4")
+ endif()
+
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index a7cfe148e4..f1d19987dc 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnucash
-VERSION=${VERSION:-4.6}
+VERSION=${VERSION:-4.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -119,6 +119,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Since the latest yelp (needed by gnucash-docs) requires webkit2gtk4.1,
+# we make an adjustment here to keep things consistent:
+patch -p1 < $CWD/gnucash-webkit2gtk-4.1.patch
+
mkdir -p build
cd build
cmake \
@@ -133,7 +137,7 @@ cd build
$OFXBANKING \
$AQBANKING \
-GNinja \
- -DGNUCASH_BUILD_ID="$VERSION-`date -I` by $PACKAGER" \
+ -DGNUCASH_BUILD_ID="$VERSION `date -I` by $PACKAGER" \
-DCMAKE_BUILD_TYPE=release ..
"${NINJA:=ninja}"
diff --git a/office/gnucash/gnucash.info b/office/gnucash/gnucash.info
index 1d5a4cbfff..2cd2bd63cc 100644
--- a/office/gnucash/gnucash.info
+++ b/office/gnucash/gnucash.info
@@ -1,10 +1,10 @@
PRGNAM="gnucash"
-VERSION="4.6"
+VERSION="4.9"
HOMEPAGE="https://www.gnucash.org/"
-DOWNLOAD="https://downloads.sourceforge.net/gnucash/gnucash-4.6.tar.bz2"
-MD5SUM="3dba148c4c3f00f8e37d3ca20f526a0c"
+DOWNLOAD="https://downloads.sourceforge.net/gnucash/gnucash-4.9.tar.bz2"
+MD5SUM="50747ca64f90568b9280f8797f2d2512"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="webkit2gtk gtest"
+REQUIRES="webkit2gtk4.1 gtest"
MAINTAINER="Lenard Spencer"
EMAIL="lenardrspencer@gmail.com"