APP=libxrandr
VERSION=1.5.1
BUILD=1sml
HOMEPAGE="https://xorg.freedesktop.org/"
DOWNLOAD="https://www.x.org/releases/individual/lib/libXrandr-1.5.1.tar.bz2"
DESC="X11 RandR extension library"
REQUIRES="libxext libxrender "

build() {
  mkandenterbuilddir
  rm -rf libXrandr-$VERSION

  tar xf $SRCDIR/libXrandr-$VERSION.tar.?z*
  cd libXrandr-$VERSION
  fixbuilddirpermissions

  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
"
