# Description: Wayland is intended as a simpler replacement for X
# URL: https://wayland.freedesktop.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: expat libffi libxml2 meson ninja

name=wayland
version=1.22.0
release=1
source=(https://gitlab.freedesktop.org/wayland/wayland/-/releases/$version/downloads/wayland-$version.tar.xz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D documentation=false
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
