diff --git a/srcpkgs/avahi-discover/template b/srcpkgs/avahi-discover/template index 17985779932..0187e3c2875 100644 --- a/srcpkgs/avahi-discover/template +++ b/srcpkgs/avahi-discover/template @@ -32,6 +32,15 @@ if [ "$CROSS_BUILD" ]; then msg_error "$pkgver: this package is not cross buildable currently.\n" fi +pre_configure() { + # Disable GTK deprecations and -Werror to let this build with gtk+>=3.10. + sed -e 's,-DG_DISABLE_DEPRECATED=1,,' \ + -e 's,-DGDK_DISABLE_DEPRECATED=1,,' \ + -e 's,-DGTK_DISABLE_DEPRECATED=1,,' \ + -i avahi-ui/Makefile.in + sed -e 's,-Werror,,g' -i configure +} + avahi-python-utils_package() { noarch=yes depends="avahi-python>=$version"