gnucash: add locale workaround to the .desktop file for musl

This commit is contained in:
Helmut Pozimski 2018-09-27 13:43:45 +02:00
parent 4e0a8b1fb8
commit 806aa3027f
1 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'gnucash'
pkgname=gnucash
version=3.2
revision=3
revision=4
build_style=cmake
configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
hostmakedepends="pkg-config guile python3 libxslt perl"
@ -27,6 +27,16 @@ case "$XBPS_TARGET_MACHINE" in
*) 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}"