PKGBUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.1
  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=(accountsservice gcr-4 gjs upower gnome-session gtk4
  13. gnome-settings-daemon gsettings-desktop-schemas libcanberra-pulse
  14. libgdm libsecret mutter libnma unzip libibus gnome-autoar
  15. gnome-disk-utility libsoup3 libgweather-4)
  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. 'gst-plugins-good: Screen recording'
  22. 'gst-plugin-pipewire: Screen recording'
  23. 'gnome-bluetooth-3.0: Bluetooth support'
  24. 'power-profiles-daemon: Power profile switching')
  25. groups=(gnome)
  26. options=(debug)
  27. _commit=8b00255cc31814b09a35c9be38228d873676233e # tags/43.1^0
  28. source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  29. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git")
  30. sha256sums=('SKIP'
  31. 'SKIP')
  32. pkgver() {
  33. cd gnome-shell
  34. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  35. }
  36. prepare() {
  37. cd gnome-shell
  38. # More fixes to screencast support detection
  39. git cherry-pick -n a2acecb491e53e889dd995d3db386aaa182e04a0 \
  40. 144daf200c12f313c2cc7c01daef9e26e396a328
  41. git submodule init
  42. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  43. git -c protocol.file.allow=always submodule update
  44. }
  45. build() {
  46. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  47. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  48. arch-meson gnome-shell build -D gtk_doc=true
  49. meson compile -C build
  50. }
  51. _check() (
  52. export XDG_RUNTIME_DIR="$PWD/runtime-dir"
  53. mkdir -p -m 700 "$XDG_RUNTIME_DIR"
  54. meson test -C build --print-errorlogs
  55. )
  56. check() {
  57. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  58. bash -c "$(declare -f _check); _check"
  59. }
  60. package() {
  61. depends+=(libmutter-11.so)
  62. meson install -C build --destdir "$pkgdir"
  63. }
  64. # vim:set sw=2 sts=-1 et: