void-packages/srcpkgs/gnucash/template

47 lines
1.4 KiB
Bash

# Template file for 'gnucash'
pkgname=gnucash
version=3.2
revision=4
build_style=cmake
configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
hostmakedepends="pkg-config guile python3 libxslt perl"
makedepends="aqbanking-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"
depends="dconf guile"
short_desc="Financial-accounting software"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later"
homepage="http://www.gnucash.org"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=63e5b00c148ed0f7021ebc03e4e70c4a9c549feb3ea49d6c810f2abaaf592452
pycompile_module="gnucash"
pycompile_dirs="usr/share/gnucash/python"
conf_files="/etc/gnucash/environment"
nocross="fails to compile guile code when cross-compiling"
case "$XBPS_TARGET_MACHINE" in
*-musl) CXXFLAGS="-Wno-error"
export LC_ALL="C";;
*) CXXFLAGS="-Wno-deprecated-declarations";;
esac
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
}
gnucash-devel_package() {
short_desc+=" - development files"
depends="gnucash>=${version}_${revision}"
pkg_install() {
vmove usr/include
}
}