# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=accounts-qml-module
pkgver=0.7_git20231028
pkgrel=0
_commit="05e79ebbbf3784a87f72b7be571070125c10dfe3"
arch="all"
url="https://gitlab.com/accounts-sso/accounts-qml-module"
pkgdesc="QML bindings for libaccounts-qt + libsignon-qt"
license="LGPL-2.1-only"
makedepends="
	libaccounts-qt-dev
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	qt6-qttools-dev
	signond-dev
	"
checkdepends="
	dbus-test-runner
	xvfb-run
	"
#source="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/VERSION_$pkgver/accounts-qml-module-VERSION_$pkgver.tar.gz"
source="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/$_commit/accounts-qml-module-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	/usr/lib/qt6/bin/qmake \
		PREFIX=/usr \
		LIBDIR=/usr/lib \
		CONFIG+=no_docs
	make
}

check() {
	make check
}

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

sha512sums="
439b596d130dee81d2f7e969962c75f51413ceb5ebb7807db229e593466c22d0c87e249515a233bd18c47bf1e58f5631ab30adf8849e71fa4f3d7bd29b6974de  accounts-qml-module-05e79ebbbf3784a87f72b7be571070125c10dfe3.tar.gz
"
