123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- # Maintainer: Noah Vogt <noah@noahvogt.com>
- # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
- # Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
- # Contributor: Ionut Biru <ibiru@archlinux.org>
- # Contributor: Flamelab <panosfilip@gmail.com
- _base_name=gnome-shell
- pkgname=gnome-shell-no-screenshot-notification
- pkgver=45.4
- pkgrel=2
- epoch=1
- pkgdesc="Next generation desktop shell - without the screenshot notification"
- url="https://wiki.gnome.org/Projects/GnomeShell"
- arch=(x86_64)
- license=(GPL-3.0-or-later)
- depends=(
- accountsservice
- at-spi2-core
- bash
- cairo
- dconf
- gcc-libs
- gcr-4
- gdk-pixbuf2
- gjs
- glib2
- glibc
- gnome-autoar
- gnome-desktop-4
- gnome-session
- gnome-settings-daemon
- graphene
- gsettings-desktop-schemas
- gtk4
- hicolor-icon-theme
- json-glib
- libadwaita
- libcanberra-pulse
- libgdm
- libgirepository
- libglvnd
- libgweather-4
- libibus
- libical
- libnm
- libnma-gtk4
- libpipewire
- libpulse
- libsecret
- libsoup3
- libx11
- libxfixes
- mutter
- pango
- polkit
- systemd-libs
- unzip
- upower
- webkitgtk-6.0
- )
- makedepends=(
- asciidoc
- bash-completion
- evolution-data-server
- git
- gnome-control-center
- gobject-introspection
- gtk-doc
- meson
- sassc
- )
- checkdepends=(
- appstream-glib
- python-dbusmock
- xorg-server-xvfb
- )
- 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'
- )
- conflicts=(gnome-shell)
- provides=(gnome-shell)
- groups=(gnome)
- _commit=58522920b5ae96d2b95dad0371ce13eb4bd955ce # tags/45.4^0
- source=(
- "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
- "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
- "0001-subprojects-gvc-Bump-gvc-submodule-to-newest-commit.patch"
- "disable-screenshot-notification.patch"
- "disable-screenshot-sound.patch"
- "change-screenshot-filenaming.patch"
- )
- b2sums=('SKIP'
- 'SKIP'
- 'ee7b40aefdf751feaa661de6d0aed28efcd282250f41b25b6c0413bd75503bb2cd5413fce96d33336206448a777be04b701a4465e38c799e91328fb4197d011b'
- 'a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e'
- 'aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a'
- 'e3d93ff6565a4e2db845fe95bfd965d39a042beb47a89a91aea5f7c21b7c4d52d377470b9803082d33924780cb5a82b06159cd6ace14e1ae4249ba08eda71dac')
- pkgver() {
- cd $_base_name
- git describe --tags | sed -r 's/\.([a-z])/\1/;s/([a-z])\./\1/;s/[^-]*-g/r&/;s/-/+/g'
- }
- prepare() {
- cd $_base_name
- # Update libgnome-volume-control
- # https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-shell/-/issues/3
- git apply -3 ../0001-subprojects-gvc-Bump-gvc-submodule-to-newest-commit.patch
- patch -p1 -i "$srcdir/disable-screenshot-notification.patch"
- patch -p1 -i "$srcdir/disable-screenshot-sound.patch"
- patch -p1 -i "$srcdir/change-screenshot-filenaming.patch"
- git submodule init
- git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
- git -c protocol.file.allow=always submodule update
- }
- build() {
- local meson_options=(
- -D gtk_doc=true
- )
- CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
- LDFLAGS+=" -Wl,-Bsymbolic-functions"
- arch-meson $_base_name build "${meson_options[@]}"
- meson compile -C build
- }
- _check() (
- export XDG_RUNTIME_DIR="$PWD/rdir"
- mkdir -p -m 700 "$XDG_RUNTIME_DIR"
- export NO_AT_BRIDGE=1 GTK_A11Y=none
- # meson test -C build --print-errorlogs -t 3
- )
- check() {
- dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
- bash -c "$(declare -f _check); _check"
- }
- package() {
- depends+=(libmutter-13.so)
- meson install -C build --destdir "$pkgdir"
- }
- # vim:set sw=2 sts=-1 et:
|