# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=sailfish-access-control
pkgver=0.0.5
pkgrel=2
pkgdesc="A thin wrapper library on top of the getuid, getpwuid, getgrouplist, and friends"
url="https://github.com/sailfishos/sailfish-access-control"
arch="all"
license="LGPL-2.1-or-later"
makedepends="qt5-qtbase-dev"
source="https://github.com/sailfishos/sailfish-access-control/archive/$pkgver/sailfish-access-control-$pkgver.tar.gz
	incompatible-pointer-type.patch"
options="!check" # No test suite available

build() {
	make -C glib
}

package() {
	ROOT="$pkgdir" make -C glib install
}

sha512sums="
6f92e66497d5c20428d2e2d4906f7b88084708e8564bbbf01e602b047540efd2ff1a96953870f50254e73e23bd33038cdb922f6e95b561e9f363f804e98d9110  sailfish-access-control-0.0.5.tar.gz
f440cfd5fa654259717711b01d3285c514a16c4015d34d2166d570b1c3174c34b46038f6bcfe5883bacd09352394788b21511a3adf141b4002297fa2360efd07  incompatible-pointer-type.patch
"
