forked from alnux/repo
48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
|
wget https://github.com/swaywm/sway/archive/6ffa4b1f7000cd90d63213820039ee432803e66a.tar.gz
|
||
|
wget https://github.com/swaywm/wlroots/archive/e5063ef3a3b12d4384595cb0554cf1f84d5be6f8.tar.gz
|
||
|
wget https://raw.githubusercontent.com/kisslinux/repo/master/wayland/sway-no-seat/patches/no-evdev.patch
|
||
|
wget https://raw.githubusercontent.com/kisslinux/repo/master/wayland/sway-no-seat/patches/sway-static.patch
|
||
|
tar -xf 6ffa4b1f7000cd90d63213820039ee432803e66a.tar.gz
|
||
|
cd 6ffa4b1f7000cd90d63213820039ee432803e66a
|
||
|
|
||
|
mkdir -p subprojects/wlroots
|
||
|
tar -xf subprojects/wlroots e5063ef3a3b12d4384595cb0554cf1f84d5be6f8.tar.gz
|
||
|
|
||
|
|
||
|
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 \
|
||
|
-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 \
|
||
|
-Dseatd:builtin=enabled \
|
||
|
-Dseatd:default_library=static \
|
||
|
--force-fallback-for=wlroots,seatd \
|
||
|
. build
|
||
|
|
||
|
ninja -C build
|
||
|
meson install -C build --skip-subprojects
|
||
|
|
||
|
rm -rf \
|
||
|
"$1/usr/share/fish" \
|
||
|
"$1/usr/share/bash-completion" \
|
||
|
"$1/usr/share/backgrounds" \
|
||
|
"$1/usr/share/zsh"
|