# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libsailfishkeyprovider
pkgver=1.0.9
pkgrel=1
pkgdesc="Provides a class which can provide decoded keys to client applications"
url="https://github.com/sailfishos/libsailfishkeyprovider"
arch="all"
license="LGPL-2.1-only"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libsailfishkeyprovider/archive/$pkgver/libsailfishkeyprovider-$pkgver.tar.gz"

build() {
	qmake-qt5
	make -j1 # Race issues when linking
}

check() {
	make check
}

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

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

sha512sums="
851f7388933a9a59f5de72f99c886404523933aca64ef94813942c2eb28ab9d33de0e46d7f14eb806c6ca21a7bab751f5ea276244b3013f0b56a29b7c5a7ad1d  libsailfishkeyprovider-1.0.9.tar.gz
"
