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>
12 pkgdesc="Window manager and compositor for GNOME"
13 url="https://gitlab.gnome.org/GNOME/mutter"
22 gsettings-desktop-schemas
51 _commit=28a6447ff060ae1fbac8f20a13908d6e230eddc2 # tags/44.1^0
52 source=("git+https://gitlab.gnome.org/GNOME/mutter.git#commit=$_commit")
57 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
68 -D installed_tests=false
69 -D wayland_eglstream=true
72 CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
73 LDFLAGS+=" -Wl,-Bsymbolic-functions"
75 arch-meson mutter build "${meson_options[@]}"
76 meson compile -C build
80 export XDG_RUNTIME_DIR="$PWD/rdir" GSETTINGS_SCHEMA_DIR="$PWD/build/data"
81 mkdir -p -m 700 "$XDG_RUNTIME_DIR"
82 glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
90 trap "kill $_p1 $_p2; wait" EXIT
92 meson test -C build --print-errorlogs -t 3
96 dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
97 bash -c "$(declare -f _check); _check"
101 local p="$1" f d; shift
103 d="$srcdir/$p/${f#$pkgdir/}"
104 mkdir -p "$(dirname "$d")"
106 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
111 provides=(libmutter-12.so)
113 meson install -C build --destdir "$pkgdir"
115 _pick docs "$pkgdir"/usr/share/mutter-*/doc
118 package_mutter-docs() {
119 pkgdesc+=" (documentation)"
125 # vim:set sw=2 sts=-1 et: