diff --git a/srcpkgs/xdg-user-dirs-gtk/template b/srcpkgs/xdg-user-dirs-gtk/template index 4f6a3e03549..b89f1e28d63 100644 --- a/srcpkgs/xdg-user-dirs-gtk/template +++ b/srcpkgs/xdg-user-dirs-gtk/template @@ -1,8 +1,9 @@ # Template file for 'xdg-user-dirs-gtk' pkgname=xdg-user-dirs-gtk version=0.10 -revision=3 +revision=4 build_style=gnu-configure +configure_args="--with-locales-dir=/usr/share/locale" hostmakedepends="pkg-config intltool xdg-user-dirs" makedepends="gtk+3-devel xdg-user-dirs" depends="xdg-user-dirs" @@ -12,3 +13,9 @@ license="GPL-2.0-or-later" homepage="http://www.gnome.org" distfiles="${GNOME_SITE}/xdg-user-dirs-gtk/${version}/xdg-user-dirs-gtk-${version}.tar.xz" checksum=739a1a89baf34aa7261e924a21d2ae646b0475b67b3db3daa84327a99132d83e + +post_patch() { + vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \ + -e 's,localedir=.*eval echo.*,localedir=/usr/share/locale,' \ + configure +}