aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grantlee/APKBUILD
blob: 81c560beeaeac15ea5eff498e24ffb773356151c (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=grantlee
pkgver=5.1.0
pkgrel=1
pkgdesc="A string template engine based on the Django template system and written in Qt5"
arch="all"
url="https://github.com/steveire/grantlee"
license="LGPL-2.1-or-later"
depends_dev="qt5-qtbase-dev qt5-qtscript-dev graphviz-dev"
makedepends="$depends_dev cmake doxygen graphviz"
checkdepends="xvfb-run"
source="http://downloads.grantlee.org/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
	make docs
}

check() {
	# testfilters is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "testfilters"
}

package() {
	DESTDIR="$pkgdir" make install
	install -Dm644 apidox/* -t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="2b806a0770b9c6d02f207d5b4939ae8cae325de4fa01901320ffef5c8442ef0f1c10dd799966d0bf0d223e6541f93db8568aaf922ea1b334bcb2f85f6373a936  grantlee-5.1.0.tar.gz"