From 1aa141e8e03113ba9721989dff6744464a755fcb Mon Sep 17 00:00:00 2001
From: Hugh McMaster <hugh.mcmaster@outlook.com>
Date: Wed, 25 Oct 2017 23:08:50 +1100
Subject: [PATCH] libxslt1-dev: Move xsltconfig.h to an arch-dependent include
 directory

Closes: #834714

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
---
 debian/rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/rules b/debian/rules
index 6f02671..94c3630 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,12 @@ override_dh_auto_clean:
 
 override_dh_auto_install: $(TARGETS:%=doinstall-%)
 	find debian/ -name *.la -delete
+	# Move arch-dependent headers into /usr/include/<triplet>/libxslt
+	mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/libxslt
+	mv debian/tmp/usr/include/libxslt/xsltconfig.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/libxslt
+	# Update pkgconfig include paths
+	sed -i 's|\(Cflags: \(.*\)\)|\1/libxslt \2/$(DEB_HOST_MULTIARCH)/libxslt|' \
+		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libxslt.pc
 
 doinstall-main:
 	dh_auto_install --builddirectory=builddir/main
-- 
2.15.0.rc1

