leafpad: fix l10n dir

This commit is contained in:
Đoàn Trần Công Danh 2021-01-01 20:58:12 +07:00
parent e6930b656f
commit 2992f6cd94

View file

@ -1,15 +1,21 @@
# Template file for 'leafpad'
pkgname=leafpad
version=0.8.18.1
revision=4
revision=5
build_style=gnu-configure
configure_args="--with-locales-dir=/usr/share/locale"
hostmakedepends="intltool pkg-config"
makedepends="gettext-devel gtk+-devel desktop-file-utils hicolor-icon-theme"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="GTK+ Simple text editor"
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
maintainer="Carlo Dormeletti <carlo.dormeletti@alice.it>"
license="GPL-2.0-or-later"
homepage="http://tarot.freeshell.org/leafpad/"
distfiles="http://download-mirror.savannah.gnu.org/releases/leafpad/leafpad-${version}.tar.gz"
checksum=959d22ae07f22803bc66ff40d373a854532a6e4732680bf8a96a3fbcb9f80a2c
post_patch() {
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
-e 's,localedir=.*eval echo.*,localedir=/usr/share/locale,' \
configure
}