# Maintainer: Wouter Haffmans pkgname=grantlee-qt5-git pkgver=v5.0.0.13.g8b120f2 pkgrel=1 pkgdesc="Grantlee is a string template engine based on the Django template system." arch=('i686' 'x86_64') url="http://www.grantlee.org" license=('LGPL2.1') depends=('qt5-base' 'qt5-script') makedepends=('git' 'cmake') optdepends=() conflicts=('grantlee-qt5' 'grantlee-git') provides=('grantlee-qt5') replaces=('grantlee-git') source=("$pkgname"::'git+https://github.com/steveire/grantlee.git') md5sums=('SKIP') pkgver() { cd "$pkgname" # Use the tag of the last commit local ver="$(git describe --tags --long)" printf "%s" "${ver//-/.}" } build() { mkdir "build" cd "build" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "../$pkgname" make } package() { cd "build" make DESTDIR="$pkgdir/" install }