xdg-user-dirs-gtk: fix l10n dir

This commit is contained in:
Đoàn Trần Công Danh 2020-12-31 22:33:53 +07:00
parent 2879b28df9
commit 84d1f79182
1 changed files with 8 additions and 1 deletions

View File

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