pkgname=xscreensaver pkgver=5.08 pkgrel=2 pkgdesc="Screen saver and locker for the X Window System" arch=('i686' 'x86_64') url="http://www.jwz.org/xscreensaver/" license=('BSD') depends=('libxxf86misc' 'libglade' 'mesa' 'pam' 'xorg-res-utils') makedepends=('bc') backup=('etc/pam.d/xscreensaver') #source=(http://www.jwz.org/xscreensaver/${pkgname}-${pkgver}.tar.gz \ source=(http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/${pkgname}-${pkgver}.tar.gz xscreensaver.pam LICENSE) build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libexecdir=/usr/lib \ --with-x-app-defaults=/usr/share/X11/app-defaults \ --with-pam --without-motif \ --with-gtk --without-gnome --with-xml --with-gl \ --without-gle --with-xpm --with-pixbuf --with-jpeg \ --with-fortune="/bin/cat /etc/arch-release" || return 1 make || return 1 make install_prefix=${pkgdir} install || return 1 install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1 install -D -m644 ${srcdir}/xscreensaver.pam ${pkgdir}/etc/pam.d/xscreensaver || return 1 chmod 755 ${pkgdir}/usr/bin/xscreensaver || return 1 echo "NotShowIn=KDE;GNOME;" >> ${pkgdir}/usr/share/applications/xscreensaver-properties.desktop || return 1 }