# Description: Screen saver and locker for the X Window System
# URL: http://www.jwz.org/xscreensaver/
# Packager: pierre at nutyx dot org
# Depends on: bc libglade xorg-libxmu xorg-libxt xorg-libxpm 

name=xscreensaver
version=5.34
release=1

source=(http://www.jwz.org/xscreensaver/$name-$version.tar.gz)

build() {
cd $name-$version
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--without-gnome
make
make install_prefix=$PKG install
chmod 755 $PKG/usr/bin/xscreensaver
mkdir -p $PKG/etc/pam.d
cat > $PKG/etc/pam.d/xscreensaver << "EOF"
# Begin /etc/pam.d/xscreensaver

auth	include	system-auth
account	include	system-account

# End /etc/pam.d/xscreensaver
EOF
}
  
