From a4fd4bb2f23de8142b76ebcf1edc093f192c2b89 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Sun, 6 Aug 2023 14:57:20 -0400 Subject: [PATCH] gnucash: update to 5.3, enable SQL backends --- srcpkgs/gnucash/files/README.voidlinux | 9 ++++++++ srcpkgs/gnucash/template | 32 +++++++++++++++----------- 2 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 srcpkgs/gnucash/files/README.voidlinux diff --git a/srcpkgs/gnucash/files/README.voidlinux b/srcpkgs/gnucash/files/README.voidlinux new file mode 100644 index 00000000000..6ed12f90109 --- /dev/null +++ b/srcpkgs/gnucash/files/README.voidlinux @@ -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. diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template index 7dec4273033..fc6275c77eb 100644 --- a/srcpkgs/gnucash/template +++ b/srcpkgs/gnucash/template @@ -1,21 +1,23 @@ # Template file for 'gnucash' pkgname=gnucash -version=4.13 -revision=4 +version=5.3 +revision=1 build_style=cmake 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" makedepends="aqbanking-devel icu-devel boost-devel gc-devel glib-devel gtest-devel guile-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" short_desc="Financial-accounting software" maintainer="ManfredU " license="GPL-2.0-or-later" homepage="http://www.gnucash.org" -distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" -checksum=401a158086635ea17fbb145325558537289aa1d24d022f7c3317e12f3dabd8e7 +changelog="https://raw.githubusercontent.com/Gnucash/gnucash/stable/NEWS" +distfiles="https://github.com/Gnucash/gnucash/releases/download/${version}/gnucash-${version}.tar.gz" +checksum=e0d04e0fd5f03f39136e1f4d941ccd0202b64a6e92418f5382cb6a6772493529 pycompile_dirs="usr/share/gnucash/python" conf_files="/etc/gnucash/environment" @@ -30,14 +32,16 @@ if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then fi post_install() { - case "$XBPS_TARGET_MACHINE" in - # startup fails in scheme code when the locale is set to anything - # else on musl - *-musl) sed -i -e 's/Exec=gnucash/Exec=env LANG=C gnucash/' \ - ${DESTDIR}/usr/share/applications/gnucash.desktop - ;; - esac - rm -f "${DESTDIR}/usr/share/glib-2.0/schemas/gschemas.compiled" + vdoc "${FILESDIR}/README.voidlinux" + # startup fails in scheme code when the locale is set to anything else on musl + if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + vsed -i ${DESTDIR}/usr/share/applications/gnucash.desktop \ + -e 's/Exec=gnucash/Exec=env LANG=C gnucash/' + fi + # Delete the gnucash-valgrind executable because the source files + # 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() {