PKGBUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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=41.3
  6. pkgrel=1
  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=(accountsservice gcr gjs gnome-bluetooth upower gnome-session gtk4
  13. gnome-settings-daemon gsettings-desktop-schemas libcanberra-pulse
  14. libgdm libsecret mutter nm-connection-editor unzip gstreamer libibus
  15. gnome-autoar gnome-disk-utility gst-plugin-pipewire libsoup3)
  16. makedepends=(gtk-doc gnome-control-center evolution-data-server
  17. gobject-introspection git meson sassc asciidoc bash-completion)
  18. checkdepends=(xorg-server-xvfb)
  19. optdepends=('gnome-control-center: System settings'
  20. 'evolution-data-server: Evolution calendar integration')
  21. groups=(gnome)
  22. _commit=0599ffd06e1795f2c1c1bb18fe3d495c7206a3b7 # tags/41.3^0
  23. source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  24. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git")
  25. sha256sums=('SKIP'
  26. 'SKIP')
  27. pkgver() {
  28. cd gnome-shell
  29. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  30. }
  31. prepare() {
  32. cd gnome-shell
  33. # Fix build with meson 0.61.0
  34. git cherry-pick -n 65450a836ee9e0722a2d4c3327f52345eae293c6
  35. git submodule init
  36. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  37. git submodule update
  38. }
  39. build() {
  40. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  41. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  42. arch-meson gnome-shell build -D gtk_doc=true
  43. meson compile -C build
  44. }
  45. _check() (
  46. mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
  47. export XDG_RUNTIME_DIR
  48. meson test -C build --print-errorlogs
  49. )
  50. check() {
  51. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  52. bash -c "$(declare -f _check); _check"
  53. }
  54. package() {
  55. depends+=(libmutter-9.so)
  56. meson install -C build --destdir "$pkgdir"
  57. }
  58. # vim:set sw=2 et: