forked from kiss-community/repo
32 lines
800 B
Bash
Executable File
32 lines
800 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < sway-static.patch
|
|
patch -p1 < no-evdev.patch
|
|
|
|
# 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
|