459c461d12
Fix use-after-free in test_xaccTransEqual Disable two tests which require having the fr_FR and de_DE locales installed. Add tzdata as dependency Make_check_target=check
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# Template file for 'gnucash'
|
|
pkgname=gnucash
|
|
version=4.4
|
|
revision=1
|
|
wrksrc="${pkgname}-${version%b}"
|
|
build_style=cmake
|
|
make_check_target=check
|
|
configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
|
|
hostmakedepends="pkg-config guile python3 libxslt perl gettext swig"
|
|
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 tzdata"
|
|
depends="dconf guile perl"
|
|
short_desc="Financial-accounting software"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.gnucash.org"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
#distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
|
|
checksum=d91e0d126b461d71de1bc1b20d9cf142704353dec07d3e6599d138422759e67a
|
|
|
|
pycompile_dirs="usr/share/gnucash/python"
|
|
conf_files="/etc/gnucash/environment"
|
|
nocross="fails to compile guile code when cross-compiling"
|
|
|
|
CXXFLAGS="-Wno-error"
|
|
CFLAGS="-Wno-error"
|
|
export LC_ALL="C"
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="Segmentation fault"
|
|
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"
|
|
}
|
|
|
|
gnucash-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="gnucash>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
}
|
|
}
|