# $Id: PKGBUILD 36220 2009-04-20 19:36:33Z jgc $ # Maintainer: Jan de Groot pkgname=gnome-screensaver pkgver=2.26.1 pkgrel=1 pkgdesc="Screensaver designed to integrate well with the GNOME desktop." arch=(i686 x86_64) license=('GPL') url="http://live.gnome.org/GnomeScreensaver" backup=(etc/pam.d/gnome-screensaver) depends=('gnome-menus>=2.26.1' 'libgnomekbd>=2.26.0' 'libxss' 'libgl' 'libnotify' 'gnome-desktop>=2.26.1' 'libxxf86misc') makedepends=('pkgconfig' 'gettext' 'intltool' 'mesa' 'xscreensaver') groups=('gnome') options=(!emptydirs) install=gnome-screensaver.install source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.26/${pkgname}-${pkgver}.tar.bz2 gnome-screensaver.pam) md5sums=('13b9066bb2dfe9face50b3d852b67ded' '4b4d2672a787e0d2ed792b4c308ccf8d') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc \ --libexecdir=/usr/lib/gnome-screensaver \ --localstatedir=/var --with-gdm-config=/usr/share/gdm/defaults.conf \ --with-xscreensaverdir=/usr/share/xscreensaver/config \ --with-xscreensaverhackdir=/usr/lib/xscreensaver \ --with-dpms-ext || return 1 make || return 1 make DESTDIR="${pkgdir}" install || return 1 install -m644 "${srcdir}/gnome-screensaver.pam" "${pkgdir}/etc/pam.d/gnome-screensaver" || return 1 #Migrate xscreensaver configuration files cd "${pkgdir}/usr/share/applications/screensavers" "${srcdir}/${pkgname}-${pkgver}/data/migrate-xscreensaver-config.sh" /usr/share/xscreensaver/config/*.xml || return 1 install -m755 -d "${pkgdir}/usr/share/gconf/schemas" gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gnome-screensaver ${pkgdir}/etc/gconf/schemas/*.schemas || return 1 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas }