From 017c8aed718d1dff8dc9177581d9985c88fd8ccc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Sat, 17 Oct 2015 18:52:27 +0200
Subject: [PATCH] evolution-data-server: unbreak cross

---
 srcpkgs/evolution-data-server/template | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template
index cfd37ca7877..30740a7c7a2 100644
--- a/srcpkgs/evolution-data-server/template
+++ b/srcpkgs/evolution-data-server/template
@@ -1,7 +1,7 @@
 # Template file for 'evolution-data-server'
 pkgname=evolution-data-server
 version=3.18.1
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--with-openldap --disable-uoa
  --with-krb5=${XBPS_CROSS_BASE}/usr
@@ -27,6 +27,8 @@ fi
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
+		# Suppress wrong `pkg-config --cflags libical` result -I/usr/include
+		sed -i configure -e "/LIBICAL_EXTRA_CFLAGS=\"/s; -I.*\";\";"
 		# Create iconv-detect.h for cross builds
 		echo '/* This is an auto-generated header, DO NOT EDIT! */' > iconv-detect.h
 		echo  >>iconv-detect.h