# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxtst
version=1.2.3
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXtst-$version.tar.bz2"
desc="X11 Testing -- Resource extension library"
requires="libxext libxfixes libxi"

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

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

build() {
  CFLAGS="$CFLAGS -DHAVE__XEATDATAWORDS=1" \
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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