From 522d8a2766bbf4dd45be42a19b7f8591c26190cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 30 Aug 2015 16:13:22 +0200 Subject: [PATCH] zile: fix cross compiling --- srcpkgs/zile/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/zile/template b/srcpkgs/zile/template index 145d4bb1e4..114ebd8a40 100644 --- a/srcpkgs/zile/template +++ b/srcpkgs/zile/template @@ -1,7 +1,7 @@ # Template file for 'zile' pkgname=zile version=2.4.11 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="help2man pkg-config" makedepends="acl-devel gc-devel ncurses-devel" @@ -11,3 +11,11 @@ license="GPL-3" homepage="http://www.gnu.org/software/zile" distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz" checksum=1fd27bbddc61491b1fbb29a345d0d344734aa9e80cfa07b02892eedf831fa9cc + +post_configure() { + if [ "$CROSS_BUILD" ]; then + # Can not regenerate zile.1.in because the zile + # executable would be required. Use shipped file. + sed -i Makefile -e 's;\(\$(srcdir)/doc/zile.1.in:\).*;\1;' + fi +}