2019-06-28 01:07:46 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-04-14 10:03:11 -06:00
|
|
|
patch -p1 < libinput-optional-udev.patch
|
|
|
|
|
2019-10-07 15:07:48 -06:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
2020-01-19 07:28:48 -07:00
|
|
|
# Meson build has no support for automatically using
|
|
|
|
# udev if available. This simply does the same.
|
2020-07-22 00:19:57 -06:00
|
|
|
pkg-config --exists libudev || udev=false
|
2020-01-19 07:28:48 -07:00
|
|
|
|
2019-06-28 01:07:46 -06:00
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
2020-05-08 02:41:50 -06:00
|
|
|
--libexecdir=/usr/lib \
|
2019-06-28 01:07:46 -06:00
|
|
|
-Ddebug-gui=false \
|
|
|
|
-Ddocumentation=false \
|
|
|
|
-Dtests=false \
|
|
|
|
-Dlibwacom=false \
|
2020-01-19 07:28:48 -07:00
|
|
|
-Dudev="${udev:=true}" \
|
|
|
|
-Dtools="$udev" \
|
2019-06-28 01:07:46 -06:00
|
|
|
. output
|
|
|
|
|
|
|
|
ninja -C output
|
2019-10-07 15:07:48 -06:00
|
|
|
ninja -C output install
|