37 lines
1 KiB
Text
37 lines
1 KiB
Text
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||
|
pkgname=grantlee
|
||
|
pkgver=5.1.0
|
||
|
pkgrel=0
|
||
|
pkgdesc="A string template engine based on the Django template system and written in Qt5"
|
||
|
arch="all"
|
||
|
url="https://www.gitorious.org/grantlee/pages/Home"
|
||
|
license=LGPL-3.0
|
||
|
depends=""
|
||
|
depends_dev="qt5-qtbase-dev qt5-qtscript-dev graphviz-dev"
|
||
|
makedepends="$depends_dev cmake doxygen"
|
||
|
source="http://downloads.grantlee.org/$pkgname-$pkgver.tar.gz"
|
||
|
subpackages="$pkgname-dev" # $pkgname-doc, didn't manage to install them properly yet
|
||
|
options="!check" # Requires running X11 server
|
||
|
|
||
|
build() {
|
||
|
cd "$builddir"
|
||
|
cmake \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DBUILD_TESTS=ON
|
||
|
make
|
||
|
# TODO: make the docs actually install
|
||
|
make docs
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd "$builddir"
|
||
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir"
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
}
|
||
|
sha512sums="2b806a0770b9c6d02f207d5b4939ae8cae325de4fa01901320ffef5c8442ef0f1c10dd799966d0bf0d223e6541f93db8568aaf922ea1b334bcb2f85f6373a936 grantlee-5.1.0.tar.gz"
|