diff --git a/srcpkgs/grantlee5/template b/srcpkgs/grantlee5/template index dac30b07c89..1c2f6c3ade7 100644 --- a/srcpkgs/grantlee5/template +++ b/srcpkgs/grantlee5/template @@ -4,7 +4,7 @@ version=5.1.0 revision=1 wrksrc=${pkgname%5}-${version} build_style=cmake -makedepends="qt5-devel qt5-script-devel qt5-tools-devel" +makedepends="qt5-script-devel qt5-tools-devel" short_desc="Qt5 string template engine based on the Django template system" maintainer="Juan RP " license="LGPL-3" @@ -12,6 +12,10 @@ homepage="https://github.com/steveire/grantlee" distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" checksum=3836572fe5e49d28a1d99186c6d96f88ff839644b4bc77b73b6d8208f6ccc9d1 +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-tools-devel" +fi + grantlee5-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"