# Template file for 'mate-screensaver'
pkgname=mate-screensaver
version=1.8.0
revision=1
build_style=gnu-configure
build_options="systemd"
configure_args="--with-gtk=2.0 $(vopt_enable systemd)"
hostmakedepends="pkg-config intltool itstool"
makedepends="gtk+-devel dbus-glib-devel libnotify-devel libXScrnSaver-devel
 libmatekbd-devel mate-menus-devel mate-desktop-devel pam-devel
 $(vopt_if systemd systemd-devel)"
depends="mate-desktop mate-session-manager"
short_desc="Screensaver for MATE"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://mate-desktop.org"
distfiles="http://pub.mate-desktop.org/releases/1.8/${pkgname}-${version}.tar.xz"
checksum=93979d0a6203fa0b59eb5477bdd5b78788a1b1adc861c3d0085339b859ec3106

post_install() {
	vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
}
