gnome-control-center: unbreak cross

This commit is contained in:
Jürgen Buchmüller 2015-10-17 20:03:59 +02:00
parent bddf0df4d0
commit fb29d06445

View file

@ -11,7 +11,7 @@ homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=9a59ec1fe03d873a75a669d933f6e37d8243252ff41850da2a9009e99b578b41
hostmakedepends="pkg-config intltool gnome-doc-utils gobject-introspection"
hostmakedepends="pkg-config intltool glib-devel gnome-doc-utils gobject-introspection"
makedepends="
libXi-devel colord-devel libsoup-devel gsettings-desktop-schemas-devel
gnome-desktop-devel libgnomekbd-devel samba-devel
@ -27,6 +27,18 @@ makedepends="
depends="gsettings-desktop-schemas>=3.16 alsa-plugins-pulseaudio desktop-file-utils
hicolor-icon-theme sound-theme-freedesktop apg iso-codes"
post_configure() {
if [ "$CROSS_BUILD" ]; then
# Fix wrong GDESKTOP_PREFIX = /usr
find . -name Makefile -exec sed -i "{}" \
-e "s;GDESKTOP_PREFIX = /usr;GDESKTOP_PREFIX = ${XBPS_CROSS_BASE}/usr;" \;
# Disable ./test-hostname (binary is not compiled for host arch)
sed -i shell/Makefile \
-e "s;all-local: check-local;all-local:;"
fi
}
gnome-control-center-devel_package() {
short_desc+=" - development files"
pkg_install() {