PKGBUILD 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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=42.0
  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-3.0 upower gnome-session gtk4
  13. gnome-settings-daemon gsettings-desktop-schemas libcanberra-pulse
  14. libgdm libsecret mutter libnma unzip gstreamer libibus gnome-autoar
  15. gnome-disk-utility gst-plugin-pipewire 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. groups=(gnome)
  22. options=(debug)
  23. _commit=44b4b02c3f772a50e6f8b8fd2dca6d9dc3a98725 # tags/42.0^0
  24. source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  25. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git")
  26. sha256sums=('SKIP'
  27. 'SKIP')
  28. pkgver() {
  29. cd gnome-shell
  30. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  31. }
  32. prepare() {
  33. cd gnome-shell
  34. git submodule init
  35. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  36. git submodule update
  37. }
  38. build() {
  39. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  40. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  41. arch-meson gnome-shell build -D gtk_doc=true
  42. meson compile -C build
  43. }
  44. _check() (
  45. mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
  46. export XDG_RUNTIME_DIR
  47. meson test -C build --print-errorlogs
  48. )
  49. check() {
  50. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  51. bash -c "$(declare -f _check); _check"
  52. }
  53. package() {
  54. depends+=(libmutter-10.so)
  55. meson install -C build --destdir "$pkgdir"
  56. }
  57. # vim:set sw=2 et: