# Contributor: Leo # Maintainer: Leo pkgname=libxkbcommon pkgver=0.8.4 pkgrel=0 pkgdesc="a keyboard handling library" url="https://www.xkbcommon.org/" arch="all" license="MIT" depends_dev="libxkbcommon-x11=$pkgver-r$pkgrel" makedepends=" bison wayland-dev wayland-protocols libxcb-dev xkeyboard-config meson" checkdepends="bash" subpackages="$pkgname-dev $pkgname-x11" source="http://xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz" builddir="$srcdir"/libxkbcommon-$pkgver build() { cd "$builddir" meson \ --prefix=/usr \ -Denable-wayland=true \ -Denable-docs=false \ -Denable-x11=true \ build ninja -C build } check() { cd "$builddir" ninja -C build test } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install } x11() { pkgdesc="$pkgdesc (x11 support)" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*x11*.so.* "$subpkgdir"/usr/lib } sha512sums="dbd441d0d7d5ba4fb352d64d150d163d4cdcf8340059457c291dc1fc69d1606ff6589732cb41a7fcfe106af0192977b243d7d68c4d95b90ece7abb620df360e3 libxkbcommon-0.8.4.tar.xz"