diff --git a/srcpkgs/libglib-static/template b/srcpkgs/libglib-static/template index ee6de793298..83dc7323082 100644 --- a/srcpkgs/libglib-static/template +++ b/srcpkgs/libglib-static/template @@ -5,7 +5,7 @@ # pkgname=libglib-static version=2.58.3 -revision=4 +revision=5 wrksrc="glib-${version}" build_style=gnu-configure configure_args="--enable-libelf --disable-fam --disable-shared --with-pcre=system @@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Projects/GLib" changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS" distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz" checksum=8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481 +conflicts="libglib-devel>=0" if [ "$CROSS_BUILD" ]; then hostmakedepends+=" glib-devel" @@ -29,6 +30,15 @@ if [ "$CROSS_BUILD" ]; then esac fi +post_patch() { + # Better to just rm -rf /usr/lib/locale in post_install? + vsed -i -e "s,localedir=.*,localedir=/usr/share/locale," \ + -e "s,DATADIRNAME=lib,DATADIRNAME=share," \ + m4macros/glib-gettext.m4 + vsed -i -e "s,^localedir =.*,localedir = /usr/share/locale," \ + po/Makefile.in.in +} + pre_configure() { NOCONFIGURE=1 ./autogen.sh }