APP=libxkbcommon
VERSION=0.8.2
BUILD=1sml
HOMEPAGE="https://xkbcommon.org/"
DOWNLOAD="https://xkbcommon.org/download/libxkbcommon-0.8.2.tar.xz"
DESC="Keymap handling library for toolkits and window systems"
REQUIRES="libxml2 xkeyboard-config libxcb"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

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

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

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