# Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Ionut Biru # Contributor: Michael Kanis pkgname=mutter pkgver=3.34.0+66+gca318c152 pkgrel=1 pkgdesc="A window manager for GNOME" url="https://gitlab.gnome.org/GNOME/mutter" arch=(x86_64) license=(GPL) depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas libcanberra startup-notification zenity libsm gnome-desktop upower libxkbcommon-x11 gnome-settings-daemon libgudev libinput pipewire xorg-server-xwayland) makedepends=(gobject-introspection git egl-wayland meson xorg-server sysprof) checkdepends=(xorg-server-xvfb) groups=(gnome) install=mutter.install _commit=ca318c1520de10353375900614e0e25c204f3313 # master source=("git+https://gitlab.gnome.org/GNOME/mutter.git#commit=$_commit" fix_keyboard_layout_switching.patch) sha256sums=('SKIP' '846d93069f2d812a307904463e959639a728be64a8f9901b658236c5dc732194') pkgver() { cd $pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgname patch -p1 < ../fix_keyboard_layout_switching.patch } build() { arch-meson $pkgname build \ -D egl_device=true \ -D wayland_eglstream=true \ -D installed_tests=false ninja -C build } check() ( mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}" glib-compile-schemas "${GSETTINGS_SCHEMA_DIR:=$PWD/build/data}" export XDG_RUNTIME_DIR GSETTINGS_SCHEMA_DIR # Unexpected passes in conform test # Stacking test flaky dbus-run-session xvfb-run -s '+iglx -noreset' meson test -C build --print-errorlogs || : ) package() { DESTDIR="$pkgdir" meson install -C build }