# Contributor: Sören Tempel # Contributor: Bartłomiej Piotrowski # Maintainer: Sheila Aman pkgname=wayland pkgver=1.20.91 pkgrel=0 pkgdesc="A computer display server protocol" url="https://wayland.freedesktop.org" arch="all" license="MIT" depends="" depends_dev="libffi-dev expat-dev" makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash meson" subpackages="$pkgname-dev" replaces="wayland-libs-client wayland-libs-cursor wayland-libs-server" source="https://gitlab.freedesktop.org/${pkgname}/${pkgname}/-/releases/${pkgver}/downloads/${pkgname}-${pkgver}.tar.xz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=plain \ -Ddocumentation=false \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { export XDG_RUNTIME_DIR=$(mktemp -d) meson test --no-rebuild -v -C output rm -fr "${XDG_RUNTIME_DIR}" } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } dev() { mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$pkgdir"/usr/share \ "$subpkgdir"/usr default_dev } sha512sums="c437bb70e4ed72c7b9271df15376f1434f3dffc19673fe990633a39503c9874be798e196169f19677e2fe8b0bc6fc6594e16c88853d73ce06f0fb15d60dc5aaf wayland-1.20.91.tar.xz"