From 84d1f791828214ffd6c5551c5c602df9cca3f8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 31 Dec 2020 22:33:53 +0700 Subject: [PATCH] xdg-user-dirs-gtk: fix l10n dir --- srcpkgs/xdg-user-dirs-gtk/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +}