# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-polkit
pkgver=1.20.0
pkgrel=0
pkgdesc="MATE Authentication Agent for PolicyKit"
url="https://github.com/mate-desktop/mate-polkit"
arch="all"
license="GPL-2.0"
depends="mate-common"
makedepends="polkit-dev libtool intltool gtk+3.0-dev
	gobject-introspection-dev"
subpackages="$pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="d842937cdb62d441140aed68e879bd6972c4ef7351093575bf1fda399f051ece26fb542834060b21cb53d308717f58e57cbd354521b68b27841809f1fd32cfcb  mate-polkit-1.20.0.tar.xz"
