PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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=(
  13. accountsservice
  14. gcr-4
  15. gjs
  16. gnome-autoar
  17. gnome-disk-utility
  18. gnome-session
  19. gnome-settings-daemon
  20. gsettings-desktop-schemas
  21. gtk4
  22. libcanberra-pulse
  23. libgdm
  24. libgweather-4
  25. libibus
  26. libnma
  27. libsecret
  28. libsoup3
  29. mutter
  30. unzip
  31. upower
  32. )
  33. makedepends=(
  34. asciidoc
  35. bash-completion
  36. evolution-data-server
  37. git
  38. gnome-control-center
  39. gobject-introspection
  40. gtk-doc
  41. meson
  42. sassc
  43. )
  44. checkdepends=(xorg-server-xvfb)
  45. optdepends=(
  46. 'evolution-data-server: Evolution calendar integration'
  47. 'gnome-bluetooth-3.0: Bluetooth support'
  48. 'gnome-control-center: System settings'
  49. 'gst-plugin-pipewire: Screen recording'
  50. 'gst-plugins-good: Screen recording'
  51. 'power-profiles-daemon: Power profile switching'
  52. 'switcheroo-control: Multi-GPU support'
  53. )
  54. groups=(gnome)
  55. _commit=e9b26eac0c0d66b87201874ce2b704268ee99be6 # tags/43.2^0
  56. source=(
  57. "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  58. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
  59. )
  60. b2sums=('SKIP'
  61. 'SKIP')
  62. pkgver() {
  63. cd gnome-shell
  64. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  65. }
  66. prepare() {
  67. cd gnome-shell
  68. git submodule init
  69. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  70. git -c protocol.file.allow=always submodule update
  71. }
  72. build() {
  73. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  74. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  75. arch-meson gnome-shell build -D gtk_doc=true
  76. meson compile -C build
  77. }
  78. _check() (
  79. export XDG_RUNTIME_DIR="$PWD/runtime-dir"
  80. mkdir -p -m 700 "$XDG_RUNTIME_DIR"
  81. meson test -C build --print-errorlogs
  82. )
  83. check() {
  84. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  85. bash -c "$(declare -f _check); _check"
  86. }
  87. package() {
  88. depends+=(libmutter-11.so)
  89. meson install -C build --destdir "$pkgdir"
  90. }
  91. # vim:set sw=2 sts=-1 et: