2021-07-08 03:06:02 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-08 15:41:52 -06:00
|
|
|
patch -p1 < sway-static.patch
|
2021-07-09 03:39:57 -06:00
|
|
|
patch -p1 < no-evdev.patch
|
2021-07-08 15:41:52 -06:00
|
|
|
|
2021-07-12 05:16:49 -06:00
|
|
|
# Build fails in subprojects/seatd with clang
|
|
|
|
# due to -Werror -> -Wsign-compare.
|
|
|
|
export CFLAGS="-Wno-error $CFLAGS"
|
|
|
|
|
2021-07-08 03:06:02 -06:00
|
|
|
# Remove conflict between static libseat and wlroots.
|
|
|
|
sed 's/\(const long NSEC\)/static \1/' \
|
|
|
|
subprojects/seatd/common/log.c > _
|
|
|
|
mv -f _ subprojects/seatd/common/log.c
|
|
|
|
|
2021-07-09 03:57:11 -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
|
|
|
|
|
2021-07-08 03:06:02 -06:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
-Dexamples=false \
|
|
|
|
-Dxwayland=disabled \
|
|
|
|
-Dx11-backend=disabled \
|
|
|
|
-Dxcb-errors=disabled \
|
|
|
|
-Dxcb-icccm=disabled \
|
|
|
|
-Dwlroots:examples=false \
|
|
|
|
-Dwlroots:xcb-errors=disabled \
|
|
|
|
-Dwlroots:x11-backend=disabled \
|
|
|
|
-Dwlroots:default_library=static \
|
2021-07-08 15:41:52 -06:00
|
|
|
-Dseatd:builtin=enabled \
|
2021-07-08 03:06:02 -06:00
|
|
|
-Dseatd:default_library=static \
|
|
|
|
--force-fallback-for=wlroots,seatd \
|
|
|
|
. build
|
|
|
|
|
|
|
|
ninja -C build
|
|
|
|
meson install -C build --skip-subprojects
|
|
|
|
|
2021-07-12 11:36:01 -06:00
|
|
|
rm -rf \
|
|
|
|
"$1/usr/share/fish" \
|
|
|
|
"$1/usr/share/bash-completion" \
|
|
|
|
"$1/usr/share/backgrounds" \
|
|
|
|
"$1/usr/share/zsh"
|