2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 03:00:10 -07:00
repo/wayland/sway-no-seat/build
2022-07-12 14:50:01 -05:00

33 lines
790 B
Bash
Executable File

#!/bin/sh -e
for p in *.patch; do
patch -p1 < "$p"
done
# Build fails in subprojects/seatd with clang
# due to -Werror -> -Wsign-compare.
export CFLAGS="-Wno-error $CFLAGS"
# Default background color.
sed 's/0.25f, 0.25f, 0.25f/0.929, 0.870, 0.678/' \
sway/desktop/render.c > _
mv -f _ sway/desktop/render.c
meson \
--prefix=/usr \
-Ddefault-wallpaper=false \
-Dzsh-completions=false \
-Dbash-completions=false \
-Dfish-completions=false \
-Dxwayland=disabled \
-Dwlroots:examples=false \
-Dwlroots:xcb-errors=disabled \
-Dwlroots:default_library=static \
-Dseatd:libseat-builtin=enabled \
-Dseatd:default_library=static \
--force-fallback-for=wlroots,seatd \
. build
ninja -C build
meson install -C build --skip-subprojects