PKGBUILD 2.5 KB

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