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.
This commit is contained in:
Jürgen Buchmüller 2018-01-19 16:27:25 +01:00
parent c594a92111
commit 638350f37d
1 changed files with 3 additions and 1 deletions

View File

@ -12,4 +12,6 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://download.kde.org/stable/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" distfiles="http://download.kde.org/stable/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=234116f4c05ae21d828594d652b4c4a052ef75727e2d8a4f3a4fb605de9e4c49 checksum=234116f4c05ae21d828594d652b4c4a052ef75727e2d8a4f3a4fb605de9e4c49
[ -n "$CROSS_BUILD" ] && hostmakedepends+=" qt-qmake qt-host-tools" if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt-qmake qt-host-tools"
fi