summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 220986037f30dee6ca2391c62e3416a52f3d272a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Wouter Haffmans <wouter@simply-life.net>
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
}