diff options
Diffstat (limited to 'user/libxkbcommon')
-rw-r--r-- | user/libxkbcommon/APKBUILD | 78 |
1 files changed, 56 insertions, 22 deletions
diff --git a/user/libxkbcommon/APKBUILD b/user/libxkbcommon/APKBUILD index 6dc619982..a667c3ab7 100644 --- a/user/libxkbcommon/APKBUILD +++ b/user/libxkbcommon/APKBUILD @@ -1,38 +1,72 @@ -# Contributor: William Pitcock <nenolod@dereferenced.org> +# Contributor: Ariadne Conill <ariadne@dereferenced.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=libxkbcommon -pkgver=0.8.4 +pkgver=1.8.1 pkgrel=0 pkgdesc="Keyboard handling library" -url="https://www.xkbcommon.org/" +url="https://xkbcommon.org/" arch="all" license="MIT AND X11" -makedepends="bison flex libxcb-dev util-macros xorgproto-dev" -checkdepends="bash" -subpackages="$pkgname-dev" -source="https://www.xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz" +options="checkx11" +depends="xkeyboard-config" +checkdepends="bash xvfb" +makedepends="bison doxygen libxcb-dev meson libxml2-dev wayland-dev + graphviz wayland-protocols" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools + $pkgname-tools-doc:xkbcli_doc $pkgname-tools-bash-completion:bashcomp" +source="https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-$pkgver.tar.gz" +builddir="$srcdir/libxkbcommon-xkbcommon-$pkgver" build() { - cd "$builddir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var - make + meson setup \ + -Dprefix=/usr \ + -Denable-docs=true \ + build + meson compile -C build } check() { - cd "$builddir" - make check + meson test -C build } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" meson install -C build } -sha512sums="dbd441d0d7d5ba4fb352d64d150d163d4cdcf8340059457c291dc1fc69d1606ff6589732cb41a7fcfe106af0192977b243d7d68c4d95b90ece7abb620df360e3 libxkbcommon-0.8.4.tar.xz" +doc() { + pkgdesc="Keyboard handling library (documentation)" + install_if="docs $pkgname=$pkgver-r$pkgrel" + # Library docs are in HTML in /usr/share/doc, while xkbcli + # docs are man pages. So we move doc directory to the subpackage... + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share +} + +tools() { + pkgdesc="xkb command-line tool with interactive debugger" + + mkdir -p "$subpkgdir"/usr/bin + mkdir -p "$subpkgdir"/usr/libexec/xkbcommon + + mv "$pkgdir"/usr/bin/xkbcli "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/libexec/xkbcommon "$subpkgdir"/usr/libexec/ +} + +xkbcli_doc() { + # ...and run default_doc here to let abuild process man pages properly + default_doc + pkgdesc="xkb command-line tool with interactive debugger (doc)" + install_if="docs $pkgname-tools=$pkgver-r$pkgrel" +} + +bashcomp() { + pkgdesc="xkb command-line tool with interactive debugger (bash completions)" + depends="" + install_if="$pkgname-tools=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions + mv "$pkgdir"/usr/share/bash-completion/completions/xkbcli \ + "$subpkgdir"/usr/share/bash-completion/completions/ +} + +sha512sums="a11b8563b11bd085b909753fa99e5b2129343363a05d4fac44a46b334b644dbdd57c356021926e9fdcc2bf6855b90283af93e74c471c3d5677c2ed1bf19427c2 xkbcommon-1.8.1.tar.gz" |