# Contributor: Leo # Contributor: Sören Tempel # Contributor: Daniel Sabogal # Maintainer: Simon Zeni pkgname=libinput pkgver=1.23.0 pkgrel=3 pkgdesc="Library for handling input devices" url="https://www.freedesktop.org/wiki/Software/libinput" arch="all" license="MIT" _depends_tools=" py3-libevdev py3-udev py3-yaml python3 " depends_dev=" eudev-dev " makedepends=" $_depends_tools $depends_dev gtk+3.0-dev libevdev-dev meson mtdev-dev " checkdepends=" bash check-dev py3-pytest " subpackages=" $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-udev $pkgname-debug-gui:_debug_gui $pkgname-tools $pkgname-zsh-completion " install="$pkgname.post-upgrade" source="https://gitlab.freedesktop.org/libinput/libinput/-/archive/$pkgver/libinput-$pkgver.tar.gz" # secfixes: # 1.20.1-r0: # - CVE-2022-1215 build() { abuild-meson \ -Db_lto=true \ -Ddocumentation=false \ -Dlibwacom=false \ -Ddebug-gui=true \ -Dtests="$(want_check && echo true || echo false)" \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } libs() { default_libs amove usr/share/libinput } udev() { install_if="$pkgname-libs=$pkgver-r$pkgrel eudev" amove usr/lib/udev } tools() { pkgdesc="CLI helper tools for debugging libinput" depends="$pkgname=$pkgver-r$pkgrel $_depends_tools" # Q: Maybe move all tools (even libinput-list-devices, libinput-quirks) # into -tools? (jirutka) amove usr/libexec/libinput/libinput-analyze* amove usr/libexec/libinput/libinput-debug* amove usr/libexec/libinput/libinput-measure* amove usr/libexec/libinput/libinput-record amove usr/libexec/libinput/libinput-replay } _debug_gui() { pkgdesc="GTK-based visual debug helper for libinput" depends="" amove usr/libexec/libinput/libinput-debug-gui } sha512sums=" 8b3e7c1d5abf8ec73577602516081e23d444bd94e0c1a791695f751000d9b9950ab7567691f51dcdd0242b17554d401762d45dde45c1b90f6008616076bb48b9 libinput-1.23.0.tar.gz "