APP=libxtst
VERSION=1.2.3
BUILD=1sml
HOMEPAGE="https://xorg.freedesktop.org/"
DOWNLOAD="https://www.x.org/releases/individual/lib/libXtst-1.2.3.tar.bz2"
DESC="X11 Testing -- Resource extension library"
REQUIRES="libxext libxfixes libxi"

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

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

  CFLAGS="$CFLAGS -DHAVE__XEATDATAWORDS=1" \
  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
7889b0a225abc53a9abb7194f9be8e637f209b2a294326478e4a4bdff24db6a0fbfd52f2f4ee02f83a7d3026e7effd591432fe12464c459297f9888594476072  libXtst-1.2.3.tar.lz
"
