# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xscreensaver
version=6.03
build=1sml
homepage="https://www.jwz.org/xscreensaver/"
download="https://www.jwz.org/xscreensaver/xscreensaver-$version.tar.gz"
desc="Screensaver for Xorg"
requires="gtk2 gdk-pixbuf"

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

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

build() {
  ./configure \
    --prefix="/" \
    --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="
d564e13c07b27b1c0876a2be598ff02dfe322618d2a4611bafd2af5ba9d9f2b1fec7ecd381061e447f6be57dd44ab5894ea122af49cab1bc6976f816f6776ed4  xscreensaver-6.03.tar.lz
"
