# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qmlrunner
pkgver=1.0.2
pkgrel=1
pkgdesc="Runner for QML-only apps"
url="https://github.com/rinigus/qmlrunner"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev"
source="https://github.com/rinigus/qmlrunner/archive/$pkgver/qmlrunner-$pkgver.tar.gz"
options="!check" # No tests

build() {
	qmake-qt5 \
		PREFIX=/usr
	make
}

check() {
	make test
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="283c7b5e72f8fbb5754d9aa2bb8c99fa98e5699f582320733ee068456015f6749baa0f352d56635f15d315224b9b7473394324833da3d339fbef8b023becea6f  qmlrunner-1.0.2.tar.gz"
