From 21448751aa04704fa42b41cc4cc0059fd29482cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 1 Jan 2021 20:45:43 +0700 Subject: [PATCH] gtkspell: fix l10n dir --- srcpkgs/gtkspell/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/gtkspell/template b/srcpkgs/gtkspell/template index e7369063b2b..2b185f6ee9a 100644 --- a/srcpkgs/gtkspell/template +++ b/srcpkgs/gtkspell/template @@ -1,20 +1,22 @@ # Template file for 'gtkspell' pkgname=gtkspell version=2.0.16 -revision=4 +revision=5 build_style=gnu-configure -configure_args="--disable-static" +configure_args="--with-locales-dir=/usr/share/locale --disable-static" hostmakedepends="intltool pkg-config" makedepends="enchant2-devel gtk+-devel" short_desc="Provides word-processor-style highlighting" maintainer="Orphaned " -homepage="http://gtkspell.sourceforge.net/" license="LGPL-2.1-or-later" +homepage="http://gtkspell.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02 -pre_configure() { - sed -i 's/enchant/enchant-2/g' configure +post_patch() { + vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \ + -e 's/enchant/enchant-2/g' \ + configure } gtkspell-devel_package() {