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

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
967e21109b9f2b38008b82ddeb4faa3416d8f1f6c329e773fd424e7dbac198fa940252434a6741098129d241ac86777c55c29fd9eb6e0d8c36fa39b3fd51e070  libXi-1.7.10.tar.lz
"
