# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-qml-plugin-dbus
pkgver=2.1.34
pkgrel=0
pkgdesc="Nemo QML dbus plugin"
url="https://github.com/sailfishos/nemo-qml-plugin-dbus"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative-dev
license="BSD-3-Clause AND LGPL-2.1-only"
depends_dev="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/nemo-qml-plugin-dbus/archive/$pkgver/nemo-qml-plugin-dbus-$pkgver.tar.gz"
options="!check" # No tests

build() {
	qmake-qt5
	make
}

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

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="
2d3a8a692d1afc6287af8378b43dd266adfbc6c966c727ffdd25ff6ac21b9886ba85258c805602e4cb268cf16b49934211d298f2d87308382aff2820b723578e  nemo-qml-plugin-dbus-2.1.34.tar.gz
"
