31 lines
850 B
Bash
31 lines
850 B
Bash
# Template file for 'grantlee'
|
|
pkgname=grantlee
|
|
version=0.5.1
|
|
revision=2
|
|
build_style=cmake
|
|
makedepends="qt-devel"
|
|
short_desc="Qt4 string template engine based on the Django template system"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1"
|
|
homepage="https://github.com/steveire/grantlee"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=7669a57c9a2bee24956b1daf6e63a10847172b4c46650345a9a5d14b2686e664
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt-host-tools qt-qmake"
|
|
fi
|
|
|
|
post_extract() {
|
|
sed -e 's|INCLUDE_INSTALL_DIR include|INCLUDE_INSTALL_DIR include/grantlee-qt4|' -i CMakeLists.txt
|
|
}
|
|
|
|
grantlee-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|