repo/wayland/libinput/build
2021-07-08 16:26:10 +03:00

34 lines
587 B
Bash
Executable File

#!/bin/sh -e
export CFLAGS="$CFLAGS -fPIC"
(
cd mtdev
./configure \
--prefix=/usr \
--disable-shared \
--disable-gcov
make
make DESTDIR="$OLDPWD" install
)
export PKG_CONFIG_PATH="$PWD/usr/lib/pkgconfig"
export CFLAGS="$CFLAGS -I$PWD/usr/include -L$PWD/usr/lib"
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
-Ddebug-gui=false \
-Ddocumentation=false \
-Dtests=false \
-Dlibwacom=false \
. output
ninja -C output
ninja -C output install