PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. )
  53. groups=(gnome)
  54. _commit=e9b26eac0c0d66b87201874ce2b704268ee99be6 # tags/43.2^0
  55. source=(
  56. "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
  57. "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
  58. )
  59. b2sums=('SKIP'
  60. 'SKIP')
  61. pkgver() {
  62. cd gnome-shell
  63. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  64. }
  65. prepare() {
  66. cd gnome-shell
  67. git submodule init
  68. git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
  69. git -c protocol.file.allow=always submodule update
  70. }
  71. build() {
  72. CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
  73. LDFLAGS+=" -Wl,-Bsymbolic-functions"
  74. arch-meson gnome-shell build -D gtk_doc=true
  75. meson compile -C build
  76. }
  77. _check() (
  78. export XDG_RUNTIME_DIR="$PWD/runtime-dir"
  79. mkdir -p -m 700 "$XDG_RUNTIME_DIR"
  80. meson test -C build --print-errorlogs
  81. )
  82. check() {
  83. dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
  84. bash -c "$(declare -f _check); _check"
  85. }
  86. package() {
  87. depends+=(libmutter-11.so)
  88. meson install -C build --destdir "$pkgdir"
  89. }
  90. # vim:set sw=2 sts=-1 et: