PKGBUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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=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-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. _commit=e9b26eac0c0d66b87201874ce2b704268ee99be6 # tags/43.2^0
  27. source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  28. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git")
  29. sha256sums=('SKIP'
  30. 'SKIP')
  31. pkgver() {
  32. cd gnome-shell
  33. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  34. }
  35. prepare() {
  36. cd gnome-shell
  37. git submodule init
  38. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  39. git -c protocol.file.allow=always submodule update
  40. }
  41. build() {
  42. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  43. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  44. arch-meson gnome-shell build -D gtk_doc=true
  45. meson compile -C build
  46. }
  47. _check() (
  48. export XDG_RUNTIME_DIR="$PWD/runtime-dir"
  49. mkdir -p -m 700 "$XDG_RUNTIME_DIR"
  50. meson test -C build --print-errorlogs
  51. )
  52. check() {
  53. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  54. bash -c "$(declare -f _check); _check"
  55. }
  56. package() {
  57. depends+=(libmutter-11.so)
  58. meson install -C build --destdir "$pkgdir"
  59. }
  60. # vim:set sw=2 sts=-1 et: