# Patched package: # Maintainer: Saren Arterius # Co-maintainer: Térence Clastres # Co-maintainer: Mingi Sung # Official package: # Maintainer: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Flamelab # URL: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3252 # Type: 3 # Status: 2 # Comment: Closes: # https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7339 # https://github.com/micheleg/dash-to-dock/issues/2243 # https://github.com/micheleg/dash-to-dock/issues/2179 pick_mr '3252' 'mr3252.patch' 'patch' } build() { local meson_options=( -D gtk_doc=true -D tests=$(if [ -n "$_enable_check" ]; then echo "true"; else echo "false"; fi) ) CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" LDFLAGS+=" -Wl,-Bsymbolic-functions" # Inject gvc export MESON_PACKAGE_CACHE_DIR="$srcdir" arch-meson $_pkgname build "${meson_options[@]}" meson compile -C build } _check() ( export NO_AT_BRIDGE=1 GTK_A11Y=none export XDG_RUNTIME_DIR="$PWD/rdir" mkdir -p -m 700 "$XDG_RUNTIME_DIR" meson test -C build --no-rebuild --print-errorlogs -t 2 ) # Tests FAIL and or TIMEOUT at random # gnome-shell:shell / fittsy; / headlessStart; / basic; / closeWithActiveWindows if [ -n "$_enable_check" ]; then check() { dbus-run-session -- xvfb-run -s '-nolisten local +iglx -noreset' \ bash -c "$(declare -f _check); _check" || : } fi package_gnome-shell-performance() { depends+=(libmutter-14.so) optdepends=( 'evolution-data-server: Evolution calendar integration' 'gnome-bluetooth-3.0: Bluetooth support' 'gnome-control-center: System settings' 'gnome-disk-utility: Mount with keyfiles' 'gst-plugin-pipewire: Screen recording' 'gst-plugins-good: Screen recording' 'power-profiles-daemon: Power profile switching' 'python-gobject: gnome-shell-test-tool performance tester' 'python-simplejson: gnome-shell-test-tool performance tester' 'switcheroo-control: Multi-GPU support' ) provides=(gnome-shell gnome-shell=$pkgver gnome-shell=$epoch:$pkgver) conflicts=(gnome-shell) groups=(gnome) meson install -C build --destdir "$pkgdir" mkdir -p doc/usr/share mv {"$pkgdir",doc}/usr/share/doc } if ! [ -n "$_disable_docs" ]; then package_gnome-shell-performance-docs() { pkgdesc+=" (API documentation)" provides=(gnome-shell-docs) conflicts=(gnome-shell-docs) depends=() mv doc/* "$pkgdir" } fi