@@ -4,21 +4,27 @@ set -e -x
44# https://wayland.freedesktop.org/building.html
55# https://www.linuxfromscratch.org/blfs/view/svn/general/wayland.html
66# https://www.linuxfromscratch.org/blfs/view/svn/general/wayland-protocols.html
7+ # https://gitlab.freedesktop.org/libdecor/libdecor
8+
79
810cd $( dirname` readlink -f" $0 " ` )
911
1012WAYLAND_VER=" 1.21.0"
1113WAYLAND_PROTOCOLS_VER=" 1.31"
1214WAYLAND=" wayland-${WAYLAND_VER} "
1315WAYLAND_PROTOCOLS=" wayland-protocols-${WAYLAND_PROTOCOLS_VER} "
16+ LIBDECOR_VER=" 0.1.1"
17+ LIBDECOR=" libdecor-${LIBDECOR_VER} "
1418
1519curl -sL --retry 10 https://gitlab.freedesktop.org/wayland/wayland/-/releases/${WAYLAND_VER} /downloads/${WAYLAND} .tar.xz> ${WAYLAND} .tar.xz
1620curl -sL --retry 10 https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/${WAYLAND_PROTOCOLS_VER} /downloads/${WAYLAND_PROTOCOLS} .tar.xz> ${WAYLAND_PROTOCOLS} .tar.xz
21+ curl -sL --retry 10 https://gitlab.freedesktop.org/libdecor/libdecor/uploads/ee5ef0f2c3a4743e8501a855d61cb397/${LIBDECOR} .tar.xz> ${LIBDECOR} .tar.xz
1722
1823sha512sum -c wayland.sha512
1924
2025tar xf${WAYLAND} .tar.xz
2126tar xf${WAYLAND_PROTOCOLS} .tar.xz
27+ tar xf${LIBDECOR} .tar.xz
2228
2329
2430cd $WAYLAND
@@ -40,17 +46,26 @@ mkdir build
4046cd build
4147meson setup .. \
4248--buildtype=release \
49+ --prefix=/usr \
4350-Dtests=false
4451ninja
4552ninja install
4653
4754cd ../..
4855
49-
50-
5156pkg-config --exists' wayland-client >= 1.18'
5257pkg-config --exists wayland-scanner
5358pkg-config --exists wayland-egl
5459pkg-config --exists wayland-cursor
60+ pkg-config --exists wayland-protocols
5561pkg-config --exists egl
5662pkg-config --exists' xkbcommon >= 0.5.0'
63+
64+ cd $LIBDECOR
65+
66+ # Don't compile with cairo
67+ sed -i 1d src/plugins/meson.build
68+ meson build --buildtype release -Dinstall_demo=false -Ddemo=false --prefix=/usr
69+ meson install -C build
70+
71+ cd ..