Explorar el Código

uppkg -> 45.0-1

Noah Vogt hace 1 año
padre
commit
17fcd19f0d
Se han modificado 4 ficheros con 41 adiciones y 10 borrados
  1. 7 4
      .SRCINFO
  2. 10 4
      PKGBUILD
  3. 2 2
      disable-screenshot-notification.patch
  4. 22 0
      disable-screenshot-sound.patch

+ 7 - 4
.SRCINFO

@@ -1,6 +1,6 @@
 pkgbase = gnome-shell-no-screenshot-notification
 	pkgdesc = Next generation desktop shell - without the screenshot notification
-	pkgver = 44.5
+	pkgver = 45.0
 	pkgrel = 1
 	epoch = 1
 	url = https://wiki.gnome.org/Projects/GnomeShell
@@ -45,15 +45,18 @@ pkgbase = gnome-shell-no-screenshot-notification
 	optdepends = gst-plugin-pipewire: Screen recording
 	optdepends = gst-plugins-good: Screen recording
 	optdepends = power-profiles-daemon: Power profile switching
+	optdepends = python-gobject: gnome-shell-test-tool performance tester
 	optdepends = switcheroo-control: Multi-GPU support
 	provides = gnome-shell
 	conflicts = gnome-shell
-	source = git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=d49cc6fa355d59d3a4c878ae89885cb1c571bfda
+	source = git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=2127c62b210f605747e019e6e2abee82516e3ccb
 	source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
 	source = disable-screenshot-notification.patch
+	source = disable-screenshot-sound.patch
 	b2sums = SKIP
 	b2sums = SKIP
-	b2sums = a26f59d20480a4360e8e6f281d5e0576784801fdd635a2addd5cf0b06da567387b33a3ba869865672f55a5766b02cc1ebebaf7dcc30bd0e139122c8719083863
+	b2sums = a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e
+	b2sums = aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a
 
 pkgname = gnome-shell-no-screenshot-notification
 	depends = accountsservice
@@ -75,4 +78,4 @@ pkgname = gnome-shell-no-screenshot-notification
 	depends = mutter
 	depends = unzip
 	depends = upower
-	depends = libmutter-12.so
+	depends = libmutter-13.so

+ 10 - 4
PKGBUILD

@@ -5,7 +5,7 @@
 
 _base_name=gnome-shell
 pkgname=gnome-shell-no-screenshot-notification
-pkgver=44.5
+pkgver=45.0
 pkgrel=1
 epoch=1
 pkgdesc="Next generation desktop shell - without the screenshot notification"
@@ -57,20 +57,23 @@ optdepends=(
   'gst-plugin-pipewire: Screen recording'
   'gst-plugins-good: Screen recording'
   'power-profiles-daemon: Power profile switching'
+  'python-gobject: gnome-shell-test-tool performance tester'
   'switcheroo-control: Multi-GPU support'
 )
 conflicts=(gnome-shell)
 provides=(gnome-shell)
 groups=(gnome)
-_commit=d49cc6fa355d59d3a4c878ae89885cb1c571bfda  # tags/44.5^0
+_commit=2127c62b210f605747e019e6e2abee82516e3ccb  # tags/45.0^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"
+  "disable-screenshot-sound.patch"
 )
 b2sums=('SKIP'
         'SKIP'
-        'a26f59d20480a4360e8e6f281d5e0576784801fdd635a2addd5cf0b06da567387b33a3ba869865672f55a5766b02cc1ebebaf7dcc30bd0e139122c8719083863')
+        'a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e'
+        'aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a')
 
 pkgver() {
   cd $_base_name
@@ -81,6 +84,7 @@ prepare() {
   cd $_base_name
 
   patch -p1 -i "$srcdir/disable-screenshot-notification.patch"
+  patch -p1 -i "$srcdir/disable-screenshot-sound.patch"
 
   git submodule init
   git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
@@ -103,6 +107,8 @@ _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
 )
 
@@ -112,7 +118,7 @@ check() {
 }
 
 package() {
-  depends+=(libmutter-12.so)
+  depends+=(libmutter-13.so)
   meson install -C build --destdir "$pkgdir"
 }
 

+ 2 - 2
disable-screenshot-notification.patch

@@ -1,6 +1,6 @@
 --- a/js/ui/screenshot.js
 +++ b/js/ui/screenshot.js
-@@ -2184,48 +2184,7 @@ function _storeScreenshot(bytes, pixbuf) {
+@@ -2195,48 +2195,7 @@ function _storeScreenshot(bytes, pixbuf) {
          pixbuf.rowstride
      );
 
@@ -16,7 +16,7 @@
 -        _('Screenshot captured'),
 -        // Translators: notification body when a screenshot was captured.
 -        _('You can paste the image from the clipboard.'),
--        { datetime: time, gicon: content }
+-        {datetime: time, gicon: content}
 -    );
 -
 -    if (!disableSaveToDisk) {

+ 22 - 0
disable-screenshot-sound.patch

@@ -0,0 +1,22 @@
+--- a/js/ui/screenshot.js
++++ b/js/ui/screenshot.js
+@@ -2258,8 +2258,7 @@ export async function captureScreenshot(texture, geometry, scale, cursor) {
+     if (cursor === null)
+         cursor = {texture: null, x: 0, y: 0, scale: 1};
+
+-    global.display.get_sound_player().play_from_theme(
+-        'screen-capture', _('Screenshot taken'), null);
++    // patched: do not play a sound when taking a screenshot
+
+     const pixbuf = await Shell.Screenshot.composite_to_stream(
+         texture,
+@@ -2422,8 +2421,7 @@ export class ScreenshotService {
+                 const flashspot = new Flashspot(area);
+                 flashspot.fire(resolve);
+
+-                global.display.get_sound_player().play_from_theme(
+-                    'screen-capture', _('Screenshot taken'), null);
++                    // patched: do not play a sound when taking a screenshot
+             });
+         });
+     }