gnubg: bodge locales for musl.

This commit is contained in:
Leah Neukirchen 2025-03-17 13:21:38 +01:00
parent 83120f11db
commit 75959bd4ca

View file

@ -1,10 +1,10 @@
# Template file for 'gnubg'
pkgname=gnubg
version=1.08.003
revision=4
revision=5
build_style=gnu-configure
configure_args="--disable-cputest ax_cv_gcc_x86_cpuid_0x00000001=6000000
--with-gtk3"
--with-gtk3 --localedir=/usr/share/locale"
hostmakedepends="flex gdk-pixbuf-devel gettext pkg-config python3-devel"
makedepends="libcurl-devel libglib-devel gtk+3-devel libepoxy-devel python3-devel
glu-devel libcanberra-devel readline-devel readline sqlite-devel"
@ -34,3 +34,12 @@ pre_configure() {
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python${py3_ver}"
fi
}
post_configure() {
vsed -i -e 's:^localedir = .*:localedir = /usr/share/locale:' \
-e 's:^gnulocaledir = .*:gnulocaledir = /usr/share/locale:' po/Makefile
}
post_install() {
rm -rf ${DESTDIR}/usr/lib/locale
}