summaryrefslogtreecommitdiff
path: root/wlroots/Pkgfile
blob: 63cd1e6e28a4daa8f1873dd788d8784f8418423d (plain)
    1 # Description: A modular Wayland compositor library.
    2 # URL: https://github.com/swaywm/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-error xorg-xcb-util-image xorg-xcb-util-wm
    5 # Optional: xorg-libxcomposite xorg-server xorg-xcb-util-renderutil xorg-xinput
    6 
    7 name=wlroots
    8 version=0.14.1
    9 release=1
   10 source=(https://github.com/swaywm/wlroots/archive/$version/$name-$version.tar.gz)
   11 
   12 build() {
   13   # use xwayland support in case that xorg-server was compiled with wayland around
   14   [[ -e /usr/bin/Xwayland ]] && PKGMK_WLROOTS+=' -D xwayland=enabled' || PKGMK_WLROOTS+=' -D xwayland=disabled'
   15   prt-get isinst xorg-server && PKGMK_WLROOTS+=' -D x11-backend=enabled' || PKGMK_WLROOTS+=' -D x11-backend=disabled'
   16   prt-get isinst xorg-xcb-util-renderutil && PKGMK_WLROOTS+=' -D x11-backend=enabled' || PKGMK_WLROOTS+=' -Dx11-backend=disabled'
   17 
   18   meson setup $name-$version build $PKGMK_WLROOTS \
   19     --prefix=/usr \
   20     --buildtype=plain \
   21     --wrap-mode nodownload \
   22     -D b_lto=true \
   23     -D b_pie=true \
   24     -D xcb-errors=enabled \
   25     -D xcb-icccm=enabled \
   26     -D libseat=enabled
   27 
   28   meson compile -C build
   29   DESTDIR=$PKG meson install -C build
   30 }

Generated by cgit