2021-07-08 07:48:47 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-12 11:18:22 +00:00
|
|
|
# Build fails in with clang due to
|
|
|
|
# -Werror -> -Wsign-compare.
|
|
|
|
export CFLAGS="-Wno-error $CFLAGS"
|
2023-03-02 14:40:00 +00:00
|
|
|
export DESTDIR="$1"
|
2021-07-12 11:18:22 +00:00
|
|
|
|
2021-07-08 07:48:47 +00:00
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
-Ddefault_library=both \
|
|
|
|
. build
|
|
|
|
|
|
|
|
ninja -C build
|
|
|
|
ninja -C build install
|
2021-07-13 08:54:47 +00: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"
|