# Contributor: Leo # Maintainer: Peter Shkenev pkgname=libxkbcommon pkgver=1.5.0 pkgrel=5 pkgdesc="keyboard handling library" url="https://www.xkbcommon.org/" arch="all" license="MIT" depends="xkeyboard-config" depends_dev="libxkbcommon-x11=$pkgver-r$pkgrel" makedepends=" bison libxcb-dev libxml2-dev meson wayland-dev wayland-protocols xkeyboard-config-dev " checkdepends="bash" subpackages="$pkgname-static $pkgname-dev $pkgname-x11 xkbcli xkbcli-doc" source="https://xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz" build() { abuild-meson \ -Denable-wayland=true \ -Denable-docs=false \ -Denable-x11=true \ -Ddefault_library=both \ build meson compile -C build } check() { meson test --no-rebuild --print-errorlogs -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } x11() { pkgdesc="$pkgdesc (x11 support)" amove usr/lib/*x11*.so.* } xkbcli() { pkgdesc="xkb command-line tool with interactive debugger" amove usr/bin/xkbcli amove usr/libexec/xkbcommon/xkbcli* } sha512sums=" bbba6665f052c04c7450413cc5e2badd6bfd41326b0e4c60e3ec01d730cae695fd34ce2662b8a91ece7a76b974a0ea330f7462dd5d2db148b0d0da26264ced9c libxkbcommon-1.5.0.tar.xz "