gtk+: fix l10n dir

This commit is contained in:
Đoàn Trần Công Danh 2021-01-30 14:29:51 +07:00
parent 8f9791cbf7
commit a061c693a8

View file

@ -1,7 +1,7 @@
# Template file for 'gtk+'
pkgname=gtk+
version=2.24.32
revision=3
revision=4
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-man $(vopt_enable cups) --with-xinput $(vopt_enable gir introspection)"
@ -18,7 +18,8 @@ license="LGPL-2.1-or-later"
homepage="http://www.gtk.org"
distfiles="${GNOME_SITE}/gtk+/2.24/gtk+-${version}.tar.xz"
checksum=b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e
python_version=2 #unverified
# gtk-builder-convert:794
python_version=2
CFLAGS="-UGDK_PIXBUF_DISABLE_DEPRECATED"
# Package build options
@ -27,11 +28,17 @@ build_options_default="gir cups"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool gtk-doc glib-devel gdk-pixbuf-devel gtk-update-icon-cache"
pre_configure() {
autoreconf -if
}
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
autoreconf -if
fi
vsed -i -e '/DATADIRNAME=/s/=.*/=share/' \
-e '/CATOBJEXT=/s/\.mo/.gmo/' \
configure
}
post_install() {
# Provide a default (icon)theme and font.
vinstall ${FILESDIR}/gtkrc 644 usr/share/gtk-2.0