# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-screensaver
pkgver=1.20.0
pkgrel=0
pkgdesc="A screen saver and locker for MATE"
url="https://github.com/mate-desktop/mate-screensaver"
arch="all"
license="GPL-2.0"
makedepends="intltool glib-dev libxscrnsaver-dev gtk+3.0-dev
	mate-desktop-dev dbus-glib-dev mate-menus-dev dconf-dev
	libnotify-dev libmatekbd-dev"
subpackages="$pkgname-dev $pkgname-doc $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 \
		--enable-locking=yes \
		--prefix=/usr
	make
}

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

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

sha512sums="049266d2de945b713ce49ab37b64c0422e3c4d62d00a137b69dacec39b5445de023cf88da0186482d4cc4e92388e44bc1a2a748cdbbbafb13b7a1015412a7c4c  mate-screensaver-1.20.0.tar.xz"
