# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxrandr
version=1.5.1
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXrandr-$version.tar.bz2"
desc="X11 RandR extension library"
requires="libxext libxrender"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
742b77aedd56aeba82573cc04d1d6fd529e5c91de29ce301b2bedede97f31ab838a654e6439e946aa6e2a4d6b64705bfc49314b394bed3063b7bb252d9744b91  libXrandr-1.5.1.tar.lz
"
