blob: 52b75fa0b22edf136b27d30fd09f4bc77129b790 (
plain)
1 # Description: library that handles input devices for display servers
2 # URL: https://www.freedesktop.org/wiki/Software/libinput/
3 # Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
4 # Depends on: eudev mtdev xorg-libevdev
5 # Optional: wayland-protocols
6
7 name=libinput
8 version=1.22.0
9 release=1
10 source=(https://gitlab.freedesktop.org/libinput/libinput/-/archive/$version/$name-$version.tar.bz2)
11
12 build() {
13 prt-get isinst zsh && \
14 PKGMK_LIBINPUT+=' -D zshcompletiondir=/usr/share/zsh/site-functions' || \
15 PKGMK_LIBINPUT+=' -D zshcompletiondir=no'
16
17 meson setup build $name-$version $PKGMK_LIBINPUT \
18 --prefix=/usr \
19 --libexecdir=/usr/lib \
20 --buildtype=plain \
21 --wrap-mode nodownload \
22 -D b_pie=true \
23 -D b_lto=true \
24 -D udev-dir=/lib/udev \
25 -D debug-gui=false \
26 -D documentation=false \
27 -D tests=false \
28 -D libwacom=false
29
30 meson compile -C build -j ${JOBS:-1}
31 DESTDIR=$PKG meson install -C build
32 }
|