123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- # Maintainer: Noah Vogt <noah@noahvogt.com>
- # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
- # Contributor: Ionut Biru <ibiru@archlinux.org>
- # Contributor: Flamelab <panosfilip@gmail.com
- _base_name=gnome-shell
- pkgname=gnome-shell-no-screenshot-notification
- pkgver=44.5
- pkgrel=1
- epoch=1
- pkgdesc="Next generation desktop shell - without the screenshot notification"
- url="https://wiki.gnome.org/Projects/GnomeShell"
- arch=(x86_64)
- license=(GPL)
- depends=(
- accountsservice
- gcr-4
- gjs
- gnome-autoar
- gnome-session
- gnome-settings-daemon
- gsettings-desktop-schemas
- gtk4
- libadwaita
- libcanberra-pulse
- libgdm
- libgweather-4
- libibus
- libnma-gtk4
- libsecret
- libsoup3
- mutter
- unzip
- upower
- )
- 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'
- 'switcheroo-control: Multi-GPU support'
- )
- groups=(gnome)
- _commit=d49cc6fa355d59d3a4c878ae89885cb1c571bfda # tags/44.5^0
- source=(
- "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
- "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
- "disable-screenshot-notification.patch"
- )
- b2sums=('SKIP'
- 'SKIP'
- 'a26f59d20480a4360e8e6f281d5e0576784801fdd635a2addd5cf0b06da567387b33a3ba869865672f55a5766b02cc1ebebaf7dcc30bd0e139122c8719083863')
- pkgver() {
- cd $_base_name
- git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
- }
- prepare() {
- cd $_base_name
- patch -p1 -i "$srcdir/disable-screenshot-notification.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"
- 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-12.so)
- meson install -C build --destdir "$pkgdir"
- }
- # vim:set sw=2 sts=-1 et:
|