# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxkbcommon
version=1.5.0
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() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix=/ \
    --buildtype=release \
    -Denable-docs=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
bbba6665f052c04c7450413cc5e2badd6bfd41326b0e4c60e3ec01d730cae695fd34ce2662b8a91ece7a76b974a0ea330f7462dd5d2db148b0d0da26264ced9c  libxkbcommon-1.5.0.tar.xz
"