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

build() {
	qmake-qt5
	make
}

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

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="
0ba35ac3d92e31ec38fc8b40056edbb40fc53c2765ea288318531e48359ecb5ecb8cd68a51b5df0c8e6e31a88f38d1e232fbd52b9da261cf0f8d3de736d40c34  nemo-qml-plugin-models-0.2.3.tar.gz
"
