PKGBUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Contributor: Ionut Biru <ibiru@archlinux.org>
  2. # Contributor: Flamelab <panosfilip@gmail.com
  3. pkgname=gnome-shell
  4. pkgver=3.26.0+33+g9a7dbfba9
  5. pkgrel=1
  6. pkgdesc="The next generation GNOME Shell"
  7. url="https://wiki.gnome.org/Projects/GnomeShell"
  8. arch=(i686 x86_64)
  9. license=(GPL2)
  10. depends=(accountsservice caribou gcr gjs gnome-bluetooth gnome-menus upower
  11. gnome-session gnome-settings-daemon gnome-themes-standard gsettings-desktop-schemas
  12. libcanberra-pulse libcroco libgdm libsecret mutter nm-connection-editor
  13. unzip gstreamer)
  14. makedepends=(gtk-doc gnome-control-center evolution-data-server gobject-introspection git meson)
  15. optdepends=('gnome-control-center: System settings'
  16. 'evolution-data-server: Evolution calendar integration')
  17. groups=(gnome)
  18. _commit=9a7dbfba99132e9b6e4a0368eba3c823f683bdfb # master
  19. source=("git+https://git.gnome.org/browse/gnome-shell#commit=$_commit"
  20. "git+https://git.gnome.org/browse/libgnome-volume-control"
  21. "git+https://git.gnome.org/browse/gnome-shell-sass"
  22. nm-libexecdir.patch)
  23. sha256sums=('SKIP'
  24. 'SKIP'
  25. 'SKIP'
  26. 'e5bb10ad2e5c3e0fde3d05babd1bfdda701e553e02d493f7e54cb7832ce7e607')
  27. pkgver() {
  28. cd $pkgname
  29. git describe --tags | sed 's/-/+/g'
  30. }
  31. prepare() {
  32. mkdir build
  33. cd $pkgname
  34. # FS#30747 FS#32730 Problems due to libexecdir different from NM
  35. patch -Np1 -i ../nm-libexecdir.patch
  36. # Move the plugin to our custom epihpany-only dir
  37. sed -i "s/'mozilla'/'epiphany'/g" meson.build
  38. git submodule init
  39. git config --local submodule.src/gvc.url "$srcdir/libgnome-volume-control"
  40. git config --local submodule.data/theme/gnome-shell-sass.url "$srcdir/gnome-shell-sass"
  41. git submodule update
  42. }
  43. build() {
  44. cd build
  45. meson setup --prefix=/usr --buildtype=release ../$pkgname \
  46. --libexecdir=/usr/lib/$pkgname --sysconfdir=/etc -Denable-documentation=true
  47. ninja
  48. }
  49. package() {
  50. cd build
  51. DESTDIR="$pkgdir" ninja install
  52. # Must exist; FS#37412
  53. mkdir "$pkgdir/usr/share/gnome-shell/modes"
  54. }