blob: ff30ac64b501765c2a9d9589b89ecff6e2f8d3d6 (
plain)
1 # Description: A modular Wayland compositor library.
2 # URL: https://gitlab.freedesktop.org/wlroots/wlroots/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: libcap libinput libxkbcommon mesa seatd wayland-protocols xorg-libpixman xorg-xcb-util-image xorg-xcb-util-wm
5 # Optional: xorg-libxcomposite xorg-server xorg-xcb-util-error xorg-xcb-util-renderutil xorg-xinput
6
7 name=wlroots
8 version=0.15.1
9 release=1
10 source=(https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/$version/wlroots-$version.tar.bz2)
11
12 build() {
13 prt-get isinst xorg-xwayland && PKGMK_WLROOTS+=' -D xwayland=enabled' || PKGMK_WLROOTS+=' -D xwayland=disabled'
14 prt-get isinst xorg-server xorg-xcb-util-renderutil && WLROOTS_BACKENDS+=',x11'
15 prt-get isinst libinput && WLROOTS_BACKENDS+=',libinput'
16
17 meson setup $name-$version build $PKGMK_WLROOTS \
18 --prefix=/usr \
19 --buildtype=plain \
20 --wrap-mode nodownload \
21 -D b_lto=true \
22 -D b_pie=true \
23 -D backends=drm$WLROOTS_BACKENDS
24
25 meson compile -C build
26 DESTDIR=$PKG meson install -C build
27 }
|