# Contributor: Leo # Maintainer: Michał Polański pkgname=gtk-layer-shell pkgver=0.8.0 pkgrel=0 pkgdesc="Create panels and other desktop components in Wayland using the Layer Shell protocol" url="https://github.com/wmww/gtk-layer-shell" arch="all" license="MIT" makedepends="meson wayland-dev gtk+3.0-dev gobject-introspection-dev vala" checkdepends="xvfb-run font-dejavu" subpackages="$pkgname-dev $pkgname-demo" source="$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk-layer-shell/archive/v$pkgver.tar.gz" build() { abuild-meson \ -Db_lto=true \ -Dexamples=true \ -Ddocs=false \ -Dtests=true \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { XDG_RUNTIME_DIR="$(mktemp -d -p "$builddir")" \ xvfb-run -a \ meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } demo() { pkgdesc="Demo of GTK Layer Shell" amove usr/bin/gtk-layer-demo } sha512sums=" 710019b05785abc3cc8bc639a110f141dd2f37ce1d78e03ed361f1c21caee6c43817499fa05c8228f233bff3ac0b6f6123fa9014a87ae99edb6b10e4ff8f3dde gtk-layer-shell-0.8.0.tar.gz "