From 638350f37d000fc29b543fb28074ae459fa49ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 19 Jan 2018 16:27:25 +0100 Subject: [PATCH] automoc4: use if/then/fi to fix strange errors Packages depending on automoc4 would fail with: => ERROR: xbps-src: failed to read /void-packages/srcpkgs/automoc4/template! Using the common style if/then/fi seems to fix that. --- srcpkgs/automoc4/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/automoc4/template b/srcpkgs/automoc4/template index f573afa6775..6faa8aac1a0 100644 --- a/srcpkgs/automoc4/template +++ b/srcpkgs/automoc4/template @@ -12,4 +12,6 @@ maintainer="Juan RP " distfiles="http://download.kde.org/stable/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" checksum=234116f4c05ae21d828594d652b4c4a052ef75727e2d8a4f3a4fb605de9e4c49 -[ -n "$CROSS_BUILD" ] && hostmakedepends+=" qt-qmake qt-host-tools" +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt-qmake qt-host-tools" +fi