app=xscreensaver
version=6.03
build=1sml
homepage="https://www.jwz.org/xscreensaver/"
download="https://www.jwz.org/xscreensaver/xscreensaver-6.03.tar.gz"
desc="Screensaver for Xorg"
requires="gtk2 gdk-pixbuf"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="/" \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=/lib \
    --with-login-manager \
    --with-gtk \
    --with-gl \
    --without-gle \
    --with-pixbuf \
    --with-jpeg \
    --without-pam \
    --without-kerberos \
    --without-elogind \
    --without-systemd \
    --with-shadow \
    --with-app-defaults="/share/X11/app-defaults"

  make
  make install install_prefix="$pkg" 

  cp $srcdir/LICENSE $pkgdocs/
  
  mkfinalpkg
}

sha512sums="
4aa30824c972a73dc09aeba478cad074f273839a4c7641cddd292da38fc75db10a3f6243cbe8619c5e39cad54c27d33e1e271dfed167458faa7747fb0a090630  xscreensaver-6.03.tar.gz
"
