summaryrefslogtreecommitdiff
path: root/wlroots/Pkgfile
blob: 095384e1cfeac5724a19d0cad14d1fe9e0a17225 (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-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.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 xorg-xcb-util-renderutil && PKGMK_WLROOTS+=' -D x11-backend=enabled' || PKGMK_WLROOTS+=' -D x11-backend=disabled'
   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 
   24   meson compile -C build
   25   DESTDIR=$PKG meson install -C build
   26 }

Generated by cgit