pkgname=luna-qml-launcher
pkgver=5.0.0_git20171102
pkgrel=1
_commit=aacef1d20c9c3656db4ecff949f23231120f8449
pkgdesc="Launcher for Lune OS based QML applications"
arch="all"
url="https://github.com/webOS-ports/luna-qml-launcher"
license="GPL-3.0+"
depends="qt5-qtwebengine qt5-qtquickcontrols2 luna-service2 luna-sysmgr-common glib libwebos-application json-c"
makedepends="cmake-modules-webos qt5-qtwebengine-dev qt5-qtquickcontrols2-dev luna-sysmgr-common-dev glib-dev luna-service2-dev libwebos-application-dev json-c-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/webOS-ports/luna-qml-launcher/archive/$_commit.tar.gz"
options="!check"
builddir="$srcdir/$pkgname-$_commit"

build() {
	mkdir -p "$srcdir"/build
	cd "$srcdir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DWEBOS_INSTALL_ROOT=/ \
		-DOE_QMAKE_PATH_QML=/usr/lib/qt5/qml/
	make
}

package() {
	cd "$srcdir"/build
	make DESTDIR="$pkgdir" install
}
sha512sums="3f2ad84e0b1804741165bd67ebf54577961020e75e98a6072a85b728973d3a9a7e5774f6c804fc71a21f625b1dc0808cc9e21b93dd1a4ef7674f5a7820a4dd7f  luna-qml-launcher-aacef1d20c9c3656db4ecff949f23231120f8449.tar.gz"
