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>
10 pkgver=44.1+r2+g82bd40dcbc
12 pkgdesc="Window manager and compositor for GNOME"
13 url="https://gitlab.gnome.org/GNOME/mutter"
22 gsettings-desktop-schemas
52 _commit=82bd40dcbcc3601da755678778f033bd9a30286d # gnome-44
53 source=("git+https://gitlab.gnome.org/GNOME/mutter.git#commit=$_commit")
58 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
69 -D installed_tests=false
70 -D wayland_eglstream=true
73 CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
74 LDFLAGS+=" -Wl,-Bsymbolic-functions"
76 arch-meson mutter build "${meson_options[@]}"
77 meson compile -C build
81 export XDG_RUNTIME_DIR="$PWD/rdir" GSETTINGS_SCHEMA_DIR="$PWD/build/data"
82 mkdir -p -m 700 "$XDG_RUNTIME_DIR"
83 glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
91 trap "kill $_p1 $_p2; wait" EXIT
93 meson test -C build --print-errorlogs -t 3
97 dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
98 bash -c "$(declare -f _check); _check"
102 local p="$1" f d; shift
104 d="$srcdir/$p/${f#$pkgdir/}"
105 mkdir -p "$(dirname "$d")"
107 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
112 provides=(libmutter-12.so)
114 meson install -C build --destdir "$pkgdir"
116 _pick docs "$pkgdir"/usr/share/mutter-*/doc
119 package_mutter-docs() {
120 pkgdesc+=" (documentation)"
126 # vim:set sw=2 sts=-1 et: