2021-07-08 01:48:47 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-12 05:18:22 -06:00
|
|
|
# Build fails in with clang due to
|
|
|
|
# -Werror -> -Wsign-compare.
|
|
|
|
export CFLAGS="-Wno-error $CFLAGS"
|
2023-03-02 07:40:00 -07:00
|
|
|
export DESTDIR="$1"
|
2021-07-12 05:18:22 -06:00
|
|
|
|
2023-11-18 13:51:12 -07:00
|
|
|
meson setup \
|
|
|
|
-Dprefix=/usr \
|
2021-07-08 01:48:47 -06:00
|
|
|
-Ddefault_library=both \
|
2023-11-18 13:51:12 -07:00
|
|
|
build
|
2021-07-08 01:48:47 -06:00
|
|
|
|
|
|
|
ninja -C build
|
|
|
|
ninja -C build install
|
2021-07-13 02:54:47 -06:00
|
|
|
|
2023-07-19 19:53:16 -06:00
|
|
|
# Set suid on seatd-launch.
|
|
|
|
chmod u+s "$1/usr/bin/seatd-launch"
|
|
|
|
|
2021-07-13 02:54:47 -06:00
|
|
|
# Install runit service.
|
|
|
|
mkdir -p "$1/etc/sv/seatd"
|
|
|
|
cp -f seatd.run "$1/etc/sv/seatd/run"
|
|
|
|
ln -sf /run/runit/supervise.seatd "$1/etc/sv/seatd/supervise"
|