gnucash: update to 5.3, enable SQL backends

This commit is contained in:
cinerea0 2023-08-06 14:57:20 -04:00 committed by Duncan Overbruck
parent bf332fd6a6
commit a4fd4bb2f2
2 changed files with 27 additions and 14 deletions

View file

@ -0,0 +1,9 @@
To use the SQL backend(s) you must install the appropriate driver:
SQL Backend Package
----------- -------
MySQL libdbdmysql
PostgreSQL libdbdpgsql
SQLite libdbdsqlite
You can also install all of the above with libdbi-drivers.

View file

@ -1,21 +1,23 @@
# Template file for 'gnucash' # Template file for 'gnucash'
pkgname=gnucash pkgname=gnucash
version=4.13 version=5.3
revision=4 revision=1
build_style=cmake build_style=cmake
make_check_target=check make_check_target=check
configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1" configure_args="-DWITH_PYTHON=1 -DCOMPILE_GSCHEMAS=OFF"
hostmakedepends="pkg-config guile python3 libxslt perl gettext swig" hostmakedepends="pkg-config guile python3 libxslt perl gettext swig"
makedepends="aqbanking-devel icu-devel boost-devel gc-devel glib-devel gtest-devel guile-devel makedepends="aqbanking-devel icu-devel boost-devel gc-devel glib-devel gtest-devel guile-devel
gwenhywfar-devel ktoblzcheck-devel libofx-devel libsecret-devel gwenhywfar-devel ktoblzcheck-devel libofx-devel libsecret-devel
libxslt-devel webkit2gtk-devel python3-devel gwenhywfar-gtk3 tzdata" libxslt-devel webkit2gtk-devel python3-devel gwenhywfar-gtk3 tzdata
libdbi-devel libdbi-drivers-devel"
depends="dconf guile perl" depends="dconf guile perl"
short_desc="Financial-accounting software" short_desc="Financial-accounting software"
maintainer="ManfredU <mu@usselmann.it>" maintainer="ManfredU <mu@usselmann.it>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="http://www.gnucash.org" homepage="http://www.gnucash.org"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" changelog="https://raw.githubusercontent.com/Gnucash/gnucash/stable/NEWS"
checksum=401a158086635ea17fbb145325558537289aa1d24d022f7c3317e12f3dabd8e7 distfiles="https://github.com/Gnucash/gnucash/releases/download/${version}/gnucash-${version}.tar.gz"
checksum=e0d04e0fd5f03f39136e1f4d941ccd0202b64a6e92418f5382cb6a6772493529
pycompile_dirs="usr/share/gnucash/python" pycompile_dirs="usr/share/gnucash/python"
conf_files="/etc/gnucash/environment" conf_files="/etc/gnucash/environment"
@ -30,14 +32,16 @@ if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
fi fi
post_install() { post_install() {
case "$XBPS_TARGET_MACHINE" in vdoc "${FILESDIR}/README.voidlinux"
# startup fails in scheme code when the locale is set to anything # startup fails in scheme code when the locale is set to anything else on musl
# else on musl if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
*-musl) sed -i -e 's/Exec=gnucash/Exec=env LANG=C gnucash/' \ vsed -i ${DESTDIR}/usr/share/applications/gnucash.desktop \
${DESTDIR}/usr/share/applications/gnucash.desktop -e 's/Exec=gnucash/Exec=env LANG=C gnucash/'
;; fi
esac # Delete the gnucash-valgrind executable because the source files
rm -f "${DESTDIR}/usr/share/glib-2.0/schemas/gschemas.compiled" # are not included with the package and the executable is hardlinked
# to the location that it was built at.
rm -f "${DESTDIR}/usr/bin/gnucash-valgrind"
} }
gnucash-devel_package() { gnucash-devel_package() {