pkgname: wlroots pkgver: '0.20.2' pkgrel: 4 pkgdesc: 'Modular Wayland compositor library (upstream, bez zmian PaganDE; nasz fork z poprawkami: wlroots-pagan)' url: https://gitlab.freedesktop.org/wlroots/wlroots arch: x86_64 license: - MIT depends: - wayland - xorg-libdrm - libinput - libxkbcommon - xorg-pixman - mesa - libdisplay-info - libliftoff - seatd - hwdata - systemd makedepends: - meson - ninja - wayland-protocols - systemd source: - https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz sha256sums: - SKIP build: | cd ${pkgname} # pagbuild dodaje -D_GNU_SOURCE do CFLAGS, a wlroots sam go definiuje # (render/allocator/udmabuf.c) -> "_GNU_SOURCE redefined" + -Werror = błąd. # -std=gnu17 i tak implikuje _GNU_SOURCE, więc usuwamy nadmiarową definicję. CFLAGS="${CFLAGS/-D_GNU_SOURCE/}" CPPFLAGS="${CPPFLAGS/-D_GNU_SOURCE/}" \ meson setup build --prefix=/usr \ -Dexamples=false \ -Drenderers=gles2 \ -Dbackends=drm,libinput \ -Dxwayland=disabled \ -Dcolor-management=disabled ninja -C build DESTDIR=${PKGDIR} ninja -C build install package: | true