# Template file for 'gnome-screensaver'
pkgname=gnome-screensaver
version=3.0.0
revision=2
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--localstatedir=/var"
short_desc="GNOME screen saver and locker"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e00e801d94c1d9f1e62049f77b91d822047eb1dcbd2e01cc38b5dd1b0f67c948
long_desc="
 ${pkgname} is a screen saver and locker that aims to have simple, sane and
 secure defaults, and be well integrated with the GNOME desktop.

 It is designed to support, among other things:

  * the ability to lock down configuration settings
  * translation into other languages
  * user switching"

# XXX: add xscreensaver hacks support.
conf_files="/etc/pam.d/${pkgname}"

Add_dependency run glibc
Add_dependency run glib
Add_dependency run dbus-libs
Add_dependency run dbus-glib
Add_dependency run libX11
Add_dependency run libXext
Add_dependency run libXxf86vm
Add_dependency run libXxf86misc
Add_dependency run libXrandr
Add_dependency run pango
Add_dependency run gdk-pixbuf
Add_dependency run cairo
Add_dependency run gtk+3
Add_dependency run pam
Add_dependency run libxklavier
Add_dependency run libgnomekbd
Add_dependency run MesaLib
Add_dependency run gnome-menus
Add_dependency run gnome-desktop

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gnome-doc-utils
Add_dependency build glib-devel
Add_dependency build dbus-devel
Add_dependency build dbus-glib-devel
Add_dependency build libX11-devel
Add_dependency build libXext-devel
Add_dependency build libXxf86vm-devel
Add_dependency build libXxf86misc-devel
Add_dependency build libXrandr-devel
Add_dependency build pango-devel
Add_dependency build gdk-pixbuf-devel
Add_dependency build cairo-devel
Add_dependency build gtk+3-devel
Add_dependency build pam-devel
Add_dependency build libxklavier-devel
Add_dependency build libgnomekbd-devel
Add_dependency build MesaLib-devel
Add_dependency build gnome-menus-devel
Add_dependency build gnome-desktop-devel

Add_dependency full gsettings-desktop-schemas
Add_dependency full desktop-file-utils

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