void-packages/srcpkgs/grantlee5/template

28 lines
798 B
Bash

# Template file for 'grantlee5'
pkgname=grantlee5
version=5.1.0
revision=2
wrksrc=${pkgname%5}-${version}
build_style=cmake
makedepends="qt5-script-devel qt5-tools-devel"
short_desc="Qt5 string template engine based on the Django template system"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-3"
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"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}