xorg/libinput/Pkgfile

32 lines
908 B
Plaintext
Raw Normal View History

2019-08-26 10:21:13 +02:00
# Description: library that handles input devices for display servers
2021-02-24 12:12:40 +01:00
# URL: https://www.freedesktop.org/wiki/Software/libinput/
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
2021-09-28 22:57:56 +02:00
# Depends on: eudev mtdev xorg-libevdev
# Optional: wayland-protocols
2015-12-03 18:06:25 +01:00
name=libinput
2022-06-19 10:07:28 +02:00
version=1.21.0
2017-07-21 09:19:55 +02:00
release=1
2022-02-20 11:48:17 +01:00
source=(https://gitlab.freedesktop.org/libinput/libinput/-/archive/$version/$name-$version.tar.bz2)
2015-12-03 18:06:25 +01:00
build() {
2021-09-15 22:52:07 +02:00
prt-get isinst zsh && \
PKGMK_LIBINPUT+=' -D zshcompletiondir=/usr/share/zsh/site-functions' || \
PKGMK_LIBINPUT+=' -D zshcompletiondir=no'
2021-09-28 22:57:56 +02:00
2021-09-15 22:52:07 +02:00
meson setup build $name-$version $PKGMK_LIBINPUT \
2020-11-03 15:25:13 +01:00
--prefix=/usr \
--libexecdir=/usr/lib \
--buildtype=plain \
2021-09-28 22:57:56 +02:00
--wrap-mode nodownload \
-D b_pie=true \
2021-09-15 22:52:07 +02:00
-D udev-dir=/lib/udev \
2020-11-03 15:25:13 +01:00
-D debug-gui=false \
-D documentation=false \
-D tests=false \
2021-09-15 22:52:07 +02:00
-D libwacom=false
2020-11-03 15:25:13 +01:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2015-12-03 18:06:25 +01:00
}