2021-09-19 19:15:06 +02:00
|
|
|
# Description: A modular Wayland compositor library.
|
|
|
|
# URL: https://github.com/swaywm/wlroots
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-09-20 23:17:34 +02:00
|
|
|
# Depends on: libcap libinput libxkbcommon mesa seatd wayland-protocols xorg-libpixman xorg-xcb-util-image xorg-xcb-util-wm
|
|
|
|
# Optional: xorg-libxcomposite xorg-server xorg-xcb-util-error xorg-xcb-util-renderutil xorg-xinput
|
2021-09-19 19:15:06 +02:00
|
|
|
|
|
|
|
name=wlroots
|
|
|
|
version=0.14.1
|
|
|
|
release=1
|
|
|
|
source=(https://github.com/swaywm/wlroots/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
# use xwayland support in case that xorg-server was compiled with wayland around
|
|
|
|
[[ -e /usr/bin/Xwayland ]] && PKGMK_WLROOTS+=' -D xwayland=enabled' || PKGMK_WLROOTS+=' -D xwayland=disabled'
|
2021-09-20 23:17:34 +02:00
|
|
|
prt-get isinst xorg-server xorg-xcb-util-renderutil && PKGMK_WLROOTS+=' -D x11-backend=enabled' || PKGMK_WLROOTS+=' -D x11-backend=disabled'
|
2021-09-19 19:15:06 +02:00
|
|
|
|
|
|
|
meson setup $name-$version build $PKGMK_WLROOTS \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
2021-09-20 23:17:34 +02:00
|
|
|
-D b_pie=true
|
2021-09-19 19:15:06 +02:00
|
|
|
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
}
|