2021-07-08 03:23:26 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-09 03:35:18 -06:00
|
|
|
patch -p1 < no-evdev.patch
|
|
|
|
|
2021-07-09 03:56:09 -06:00
|
|
|
# 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
|
|
|
|
|
2022-05-06 21:23:26 -06:00
|
|
|
# Build fails with clang due to -Werror.
|
2021-07-08 03:23:26 -06:00
|
|
|
export CFLAGS="$CFLAGS -Wno-unused-function -Wno-error"
|
|
|
|
|
|
|
|
meson \
|
2022-05-23 16:05:06 -06:00
|
|
|
-Dprefix=/usr \
|
2021-07-28 01:21:47 -06:00
|
|
|
-Dswaybar=false \
|
|
|
|
-Dswaynag=false \
|
2021-11-04 23:25:20 -06:00
|
|
|
-Ddefault-wallpaper=false \
|
|
|
|
-Dzsh-completions=false \
|
|
|
|
-Dbash-completions=false \
|
|
|
|
-Dfish-completions=false \
|
2021-07-08 03:23:26 -06:00
|
|
|
-Dxwayland=disabled \
|
|
|
|
-Dwlroots:examples=false \
|
|
|
|
-Dwlroots:xcb-errors=disabled \
|
|
|
|
-Dwlroots:default_library=static \
|
2022-05-23 16:05:06 -06:00
|
|
|
-Dseatd:libseat-builtin=enabled \
|
2021-07-08 03:23:26 -06:00
|
|
|
-Dseatd:default_library=static \
|
|
|
|
--force-fallback-for=wlroots,seatd \
|
2022-05-23 16:05:06 -06:00
|
|
|
. output
|
2021-07-08 03:23:26 -06:00
|
|
|
|
2022-05-23 16:05:06 -06:00
|
|
|
ninja -C output
|
2021-07-08 03:23:26 -06:00
|
|
|
|
|
|
|
mkdir -p \
|
|
|
|
"$1/usr/bin" \
|
|
|
|
"$1/etc/sway"
|
|
|
|
|
2022-05-23 16:05:06 -06:00
|
|
|
cp -f output/sway/sway "$1/usr/bin"
|
2021-07-08 03:23:26 -06:00
|
|
|
cp -f config.in "$1/etc/sway/config"
|