# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxscrnsaver
version=1.2.3
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXScrnSaver-$version.tar.bz2"
desc="Xlib-based X11 Screen Saver extension client library"
requires="libxcb libxext"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
4e6a0de9e0d31d3b4af8ebc0733dbad48b07a689630356d6ebda4bc1053c1383b1bf64a8b5af9b3b6a8ba90de1f465b6599c8c08e243220b62387accc7d81e3e  libxscrnsaver-1.2.3.tar.lz
"
