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=cecaa01df18925eb66c6a81f6e4b7167421d45f2 # tags/xkbcommon-1.5.0^0
36 source=("git+https://github.com/xkbcommon/libxkbcommon#commit=$_commit")
41 git describe --tags | sed 's/^xkbcommon-//;s/[^-]*-g/r&/;s/-/+/g'
47 # Fix xkbcli interactive-wayland
48 git cherry-pick -n 320f56d2a4a31026e5c8d3b60303af98bf885e1b
52 arch-meson libxkbcommon build
53 meson compile -C build
57 xvfb-run -s '-nolisten local' meson test -C build --print-errorlogs
61 local p="$1" f d; shift
63 d="$srcdir/$p/${f#$pkgdir/}"
64 mkdir -p "$(dirname "$d")"
66 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
70 package_libxkbcommon() {
76 'libxkbcommon-x11: xkbcli interactive-x11'
77 'wayland: xkbcli interactive-wayland'
84 meson install -C build --destdir "$pkgdir"
86 _pick x11 "$pkgdir"/usr/lib/*x11*
87 _pick x11 "$pkgdir"/usr/lib/pkgconfig/*x11*
88 _pick x11 "$pkgdir"/usr/lib/xkbcommon/*x11*
89 _pick x11 "$pkgdir"/usr/include/xkbcommon/*x11*
90 _pick x11 "$pkgdir"/usr/share/man/man1/*x11*
92 _pick doc "$pkgdir"/usr/share/doc
94 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
97 package_libxkbcommon-x11() {
98 pkgdesc='Keyboard handling library using XKB data for X11 XCB clients'
110 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
113 package_libxkbcommon-doc() {
114 pkgdesc='API documentation for libxkbcommon'
118 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libxkbcommon/LICENSE
121 # vim:set sw=2 sts=-1 et: