PKGBUILD 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # Maintainer: Noah Vogt <noah@noahvogt.com>
  2. # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  3. # Contributor: Ionut Biru <ibiru@archlinux.org>
  4. # Contributor: Flamelab <panosfilip@gmail.com
  5. _base_name=gnome-shell
  6. pkgname=gnome-shell-no-screenshot-notification
  7. pkgver=44.5
  8. pkgrel=1
  9. epoch=1
  10. pkgdesc="Next generation desktop shell - without the screenshot notification"
  11. url="https://wiki.gnome.org/Projects/GnomeShell"
  12. arch=(x86_64)
  13. license=(GPL)
  14. depends=(
  15. accountsservice
  16. gcr-4
  17. gjs
  18. gnome-autoar
  19. gnome-session
  20. gnome-settings-daemon
  21. gsettings-desktop-schemas
  22. gtk4
  23. libadwaita
  24. libcanberra-pulse
  25. libgdm
  26. libgweather-4
  27. libibus
  28. libnma-gtk4
  29. libsecret
  30. libsoup3
  31. mutter
  32. unzip
  33. upower
  34. )
  35. makedepends=(
  36. asciidoc
  37. bash-completion
  38. evolution-data-server
  39. git
  40. gnome-control-center
  41. gobject-introspection
  42. gtk-doc
  43. meson
  44. sassc
  45. )
  46. checkdepends=(
  47. appstream-glib
  48. python-dbusmock
  49. xorg-server-xvfb
  50. )
  51. optdepends=(
  52. 'evolution-data-server: Evolution calendar integration'
  53. 'gnome-bluetooth-3.0: Bluetooth support'
  54. 'gnome-control-center: System settings'
  55. 'gnome-disk-utility: Mount with keyfiles'
  56. 'gst-plugin-pipewire: Screen recording'
  57. 'gst-plugins-good: Screen recording'
  58. 'power-profiles-daemon: Power profile switching'
  59. 'switcheroo-control: Multi-GPU support'
  60. )
  61. groups=(gnome)
  62. _commit=d49cc6fa355d59d3a4c878ae89885cb1c571bfda # tags/44.5^0
  63. source=(
  64. "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  65. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
  66. "disable-screenshot-notification.patch"
  67. )
  68. b2sums=('SKIP'
  69. 'SKIP'
  70. 'a26f59d20480a4360e8e6f281d5e0576784801fdd635a2addd5cf0b06da567387b33a3ba869865672f55a5766b02cc1ebebaf7dcc30bd0e139122c8719083863')
  71. pkgver() {
  72. cd $_base_name
  73. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  74. }
  75. prepare() {
  76. cd $_base_name
  77. patch -p1 -i "$srcdir/disable-screenshot-notification.patch"
  78. git submodule init
  79. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  80. git -c protocol.file.allow=always submodule update
  81. }
  82. build() {
  83. local meson_options=(
  84. -D gtk_doc=true
  85. )
  86. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  87. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  88. arch-meson $_base_name build "${meson_options[@]}"
  89. meson compile -C build
  90. }
  91. _check() (
  92. export XDG_RUNTIME_DIR="$PWD/rdir"
  93. mkdir -p -m 700 "$XDG_RUNTIME_DIR"
  94. meson test -C build --print-errorlogs -t 3
  95. )
  96. check() {
  97. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  98. bash -c "$(declare -f _check); _check"
  99. }
  100. package() {
  101. depends+=(libmutter-12.so)
  102. meson install -C build --destdir "$pkgdir"
  103. }
  104. # vim:set sw=2 sts=-1 et: