1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Michael Kanis <mkanis_at_gmx_dot_de>
8 pkgdesc="A window manager for GNOME"
9 url="https://gitlab.gnome.org/GNOME/mutter"
12 depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
13 libcanberra startup-notification zenity libsm gnome-desktop upower
14 libxkbcommon-x11 gnome-settings-daemon libgudev libinput pipewire
15 xorg-xwayland graphene libxkbfile)
16 makedepends=(gobject-introspection git egl-wayland meson xorg-server
18 checkdepends=(xorg-server-xvfb pipewire-media-session python-dbusmock)
19 provides=(libmutter-9.so)
21 _commit=664ac09eecfd365b5258f53d2c9e6c8410a37919 # tags/41.2^0
22 source=("git+https://gitlab.gnome.org/GNOME/mutter.git#commit=$_commit")
27 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
35 CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
36 LDFLAGS+=" -Wl,-Bsymbolic-functions"
37 arch-meson $pkgname build \
39 -D wayland_eglstream=true \
40 -D installed_tests=false \
42 meson compile -C build
46 mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
47 glib-compile-schemas "${GSETTINGS_SCHEMA_DIR:=$PWD/build/data}"
48 export XDG_RUNTIME_DIR GSETTINGS_SCHEMA_DIR
53 pipewire-media-session &
56 trap "kill $_p1 $_p2; wait" EXIT
58 meson test -C build --print-errorlogs
62 dbus-run-session xvfb-run -s '-nolisten local' \
63 bash -c "$(declare -f _check); _check"
67 meson install -C build --destdir "$pkgdir"