# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libx11
version=1.8.2
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libX11-$version.tar.xz"
desc="X11 client-side library"
requires="xorgproto xorg-macros xtrans libxcb"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
61b756de1f51292b71e55efe1b4c7a1fee27080c17ac68ce7312e6f0df19bf268a455fc19db8218a5e11c4838ebc9871aeed7f32c439c01bf5b849744ef35925  libX11-1.8.2.tar.lz
"
