aboutsummaryrefslogtreecommitdiff
path: root/xorg/libinput/build
blob: eb7b67710f27ddc35c21daffbafc0989079c696c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

patch -p1 < libinput-optional-udev.patch

export DESTDIR="$1"

# Meson build has no support for automatically using
# udev if available. This simply does the same.
kiss l eudev >/dev/null 2>&1 || udev=false

meson \
    --prefix=/usr \
    --sysconfdir=/etc \
    --mandir=/usr/share/man \
    -Ddebug-gui=false \
    -Ddocumentation=false \
    -Dtests=false \
    -Dlibwacom=false \
    -Dudev="${udev:=true}" \
    -Dtools="$udev" \
    . output

ninja -C output
ninja -C output install