# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=signond
pkgver=8.62_git20231124
pkgrel=0
_commit="c8ad98249af541514ff7a81634d3295e712f1a39"
arch="all"
url="https://gitlab.com/accounts-sso/signond"
pkgdesc="A D-Bus service which performs user authentication on behalf of its clients"
license="LGPL-2.1-only"
makedepends="
	qt6-qtbase-dev
	doxygen
	graphviz
	"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
#source="https://gitlab.com/accounts-sso/signond/-/archive/VERSION_$pkgver/signond-VERSION_$pkgver.tar.gz"
source="https://gitlab.com/accounts-sso/signond/-/archive/$_commit/signond-$_commit.tar.gz"
checkdepends="cmd:dbus-launch"
# Tests broken https://gitlab.com/accounts-sso/signond/-/issues/10
options="!check"
#builddir="$srcdir/$pkgname-VERSION_$pkgver"
builddir="$srcdir/$pkgname-$_commit"

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

check() {
	make check
}

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

sha512sums="
25c55bb0046ac04d363969e2cd07464dab8c5aa91d0314c4297e7fb2961b4d6e72305cae6e3bc094fe5993ef5393df4eaee08c91b0a720df1d769a25e0f28e49  signond-c8ad98249af541514ff7a81634d3295e712f1a39.tar.gz
"
