From 798040d4f6334346a0d8d98a1739d114a846aba5 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 19 May 2018 01:04:15 +0200 Subject: [PATCH] libappindicator: fix crossbuild --- srcpkgs/libappindicator/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libappindicator/template b/srcpkgs/libappindicator/template index 1897403ccff..c9b54fa76b1 100644 --- a/srcpkgs/libappindicator/template +++ b/srcpkgs/libappindicator/template @@ -4,7 +4,7 @@ version=12.10.0 revision=1 build_style=gnu-configure configure_args="--with-gtk=3" -hostmakedepends="pkg-config python" +hostmakedepends="pkg-config python glib-devel" makedepends="gtk+3-devel glib-devel glib-networking libdbusmenu-glib-devel libdbusmenu-gtk3-devel libindicator-devel dbus-glib-devel python-devel python-gobject2-devel pygtk-devel" @@ -15,11 +15,16 @@ homepage="https://launchpad.net/libappindicator" distfiles="https://launchpad.net/libappindicator/${version%.*}/${version}/+download/libappindicator-${version}.tar.gz" checksum=d5907c1f98084acf28fd19593cb70672caa0ca1cf82d747ba6f4830d4cc3b49f -nocross="keeps trying to build python modules on the host" # since this package depends on features that have already been removed in # gtk+4, we need to ignore the depreciated problem. GTK is going away from the # idea of app indicators in taskbars. -CFLAGS="-Wno-deprecated-declarations" +CFLAGS="-Wno-deprecated-declarations -Wno-error=incompatible-pointer-types" + +pre_configure() { + if [ "$CROSS_BUILD" ]; then + sed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure + fi +} libappindicator-devel_package() { short_desc+=" - development files"