libglib-static: fix l10n dir, conflicts with libglib-devel
This commit is contained in:
parent
31065b22e2
commit
4428cf0f9c
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
pkgname=libglib-static
|
||||
version=2.58.3
|
||||
revision=4
|
||||
revision=5
|
||||
wrksrc="glib-${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-libelf --disable-fam --disable-shared --with-pcre=system
|
||||
|
@ -20,6 +20,7 @@ homepage="https://wiki.gnome.org/Projects/GLib"
|
|||
changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
|
||||
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
|
||||
checksum=8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481
|
||||
conflicts="libglib-devel>=0"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" glib-devel"
|
||||
|
@ -29,6 +30,15 @@ if [ "$CROSS_BUILD" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
post_patch() {
|
||||
# Better to just rm -rf /usr/lib/locale in post_install?
|
||||
vsed -i -e "s,localedir=.*,localedir=/usr/share/locale," \
|
||||
-e "s,DATADIRNAME=lib,DATADIRNAME=share," \
|
||||
m4macros/glib-gettext.m4
|
||||
vsed -i -e "s,^localedir =.*,localedir = /usr/share/locale," \
|
||||
po/Makefile.in.in
|
||||
}
|
||||
|
||||
pre_configure() {
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue