# Contributor: Leo # Maintainer: fossdd pkgname=gtk-layer-shell pkgver=0.9.1 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="LGPL-3.0-or-later AND MIT" makedepends=" gobject-introspection-dev gtk+3.0-dev meson vala wayland-dev " checkdepends=" font-dejavu xvfb-run " subpackages="$pkgname-dev $pkgname-demo" source="$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk-layer-shell/archive/v$pkgver.tar.gz" options="!check" # tests fail build() { abuild-meson \ -Db_lto=true \ -Dexamples=true \ -Ddocs=false \ -Dtests=true \ . output meson compile -C output } check() { XDG_RUNTIME_DIR="$(mktemp -d -p "$builddir")" \ xvfb-run -a \ meson test --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=" f01954dda7be7bedcc8800d55f61070949e6a9c9f783ee32b1f064cd3f8151b7b136590eb6cde2a9209c59a87a3fc363a399317d7caf4d781b4666697a39bf78 gtk-layer-shell-0.9.1.tar.gz "