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