# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxext
version=1.3.4
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libXext-$version.tar.bz2"
desc="X11 miscellaneous extensions library"
requires="libx11"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
a3a52bb1002f59e91bcfa2d9fbf312ab7505bc4c7a69d7f8372856f527ca35bb6c4d5903bcd56e52ed513fcf19762fd6f1c1f8f0e9cc611c459d79216af03e5c  libXext-1.3.4.tar.lz
"
