pkgname=gtk4-layer-shell pkgver=1.1.1 pkgdesc="A library for using the Layer Shell Wayland protocol with GTK4." homepage="https://github.com/wmww/gtk4-layer-shell" license=("MIT") depends=(vala wayland gtk:4 glib:2 meson ninja wayland-protocols wayland-scanner gobject-introspection) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://github.com/wmww/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz") sha512sums=("5c47e1df308fe9ee53bc16458209b845854307fd1d939a0342568f3a1a22bc2b40b8d817642c69a81be4c2d291495b1f900c084276c605952eead103b3cb6a02") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { local meson_args=( --prefix=/usr --buildtype=release --wrap-mode=nofallback -D python.bytecompile=1 -D examples=false -D docs=false -D tests=false -D smoke-tests=false -D introspection=true -D vapi=true ) meson setup build "${meson_args[@]}" meson compile -C build } #src_check() { # install -d -m 0700 "${TMPDIR}"/xdg-runtime # export XDG_RUNTIME_DIR="${TMPDIR}"/xdg-runtime # export GDK_BACKEND=wayland # unset WAYLAND_DISPLAY # meson test -C build #} src_install() { meson install -C build --destdir "$pkgdir" } # vim:ft=sh syn=sh et sw=2: