1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Daniel Micay <danielmicay@gmail.com>
3 # Contributor: Mladen Pejakovic <pejakm@gmail.com>
13 pkgdesc='Keymap handling library for toolkits and window systems'
14 url='https://xkbcommon.org/'
35 _commit=57af9cb71f19f37394399b549f7cb7b0d9fe3988 # tags/xkbcommon-1.4.1^0
36 source=("git+https://github.com/xkbcommon/libxkbcommon#commit=$_commit")
41 git describe --tags | sed 's/^xkbcommon-//;s/[^-]*-g/r&/;s/-/+/g'
49 arch-meson libxkbcommon build
50 meson compile -C build
54 xvfb-run -s '-nolisten local' meson test -C build --print-errorlogs
58 local p="$1" f d; shift
60 d="$srcdir/$p/${f#$pkgdir/}"
61 mkdir -p "$(dirname "$d")"
63 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
67 package_libxkbcommon() {
73 'libxkbcommon-x11: xkbcli interactive-x11'
74 'wayland: xkbcli interactive-wayland'
81 meson install -C build --destdir "$pkgdir"
83 _pick x11 "$pkgdir"/usr/lib/*x11*
84 _pick x11 "$pkgdir"/usr/lib/pkgconfig/*x11*
85 _pick x11 "$pkgdir"/usr/lib/xkbcommon/*x11*
86 _pick x11 "$pkgdir"/usr/include/xkbcommon/*x11*
87 _pick x11 "$pkgdir"/usr/share/man/man1/*x11*
89 _pick doc "$pkgdir"/usr/share/doc
91 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
94 package_libxkbcommon-x11() {
95 pkgdesc='Keyboard handling library using XKB data for X11 XCB clients'
107 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
110 package_libxkbcommon-doc() {
111 pkgdesc='API documentation for libxkbcommon'
115 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
118 # vim:set sw=2 sts=-1 et: