# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxkbcommon
version=0.8.2
build=1sml
homepage="https://xkbcommon.org/"
download="https://xkbcommon.org/download/libxkbcommon-$version.tar.xz"
desc="Keymap handling library for toolkits and window systems"
requires="libxml2 xkeyboard-config libxcb"

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

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

build() {

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
43fceb514f049f407d0d7a83ac7953ba0284a40757ac470fd64e296be1b518f8e978ecdf64e5ac23c5caced058ae9adde5c521383777cd2fba62106bb5d3e299  libxkbcommon-0.8.2.tar.lz
"
