appdata-tools: properly fix locale dir

This commit is contained in:
q66 2021-01-30 01:32:58 +01:00
parent 2261daa3ad
commit 1b9b69cc8c

View file

@ -1,18 +1,17 @@
# Template build file for 'appdata-tools'.
# Template file for 'appdata-tools'
pkgname=appdata-tools
version=0.1.8
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="libglib-devel gdk-pixbuf-devel libsoup-devel libxslt-devel appstream-glib-devel"
short_desc="Tools to handle the AppData files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2"
license="GPL-2.0-or-later"
homepage="http://people.freedesktop.org/~hughsient/appdata"
distfiles="http://people.freedesktop.org/~hughsient/releases/${pkgname}-${version}.tar.xz"
checksum=401583d27f0f91bbc03de09f53efd4bf86b20da37d6930ff7bff297d7f1e5461
post_configure() {
vsed -i po/Makefile \
-e 's;\(itlocaledir = $(prefix)\)/$(DATADIRNAME)/locale;\1/share/locale;'
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
}