# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qmltermwidget
pkgver=0.2.0
pkgrel=0
arch="all"
url="https://github.com/swordfish90/qmltermwidget"
license="GPL-2.0"
pkgdesc="QML port of qtermwidget"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/swordfish90/$pkgname/archive/$pkgver.tar.gz"
options="!check" # Requires X11 running

build() {
	cd "$builddir"
	qmake-qt5
	make
}

check() {
	cd "$builddir"
	/usr/lib/qt5/bin/qmlscene -l . test-app/test-app.qml
}

package() {
	cd "$builddir"
	INSTALL_ROOT="$pkgdir" make install
}
sha512sums="544d57296de6999b86bf2b921d1d93ac5d7eddd02eea436df4ecea0966c82389e716310fd7e4d13dd918bc1b3fd2d02f953c713dc5b4abcfc56d3f3f617adf43  qmltermwidget-0.2.0.tar.gz"
