summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c84aac2fe7b500022ef4c661f5f8ce9ecad26d4d (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
pkgname=grantlee-git
pkgver=v5.2.0.0.gb6454a9
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' 'grantlee-qt5-git')
provides=('grantlee' 'grantlee-qt5')
replaces=('grantlee-qt5-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
}