1
0
Fork 0
gnome-shell-performance-pkg.../PKGBUILD
Saren Arterius 180c8e1e6b desc
2018-08-05 02:21:24 +08:00

66 lines
2 KiB
Bash

# $Id$
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Flamelab <panosfilip@gmail.com
pkgname=gnome-shell-performance
_pkgname=gnome-shell
pkgver=3.28.3+1+gc7a82db37
pkgrel=1
pkgdesc="The next generation GNOME Shell | Attempt to improve the performance by non-upstreamed patches"
url="https://wiki.gnome.org/Projects/GnomeShell"
arch=(x86_64)
license=(GPL2)
depends=(accountsservice gcr gjs gnome-bluetooth upower gnome-session gnome-settings-daemon
gnome-themes-extra gsettings-desktop-schemas libcanberra-pulse libcroco libgdm libsecret
mutter nm-connection-editor unzip gstreamer libibus)
makedepends=(gtk-doc gnome-control-center evolution-data-server gobject-introspection git meson
sassc)
optdepends=('gnome-control-center: System settings'
'evolution-data-server: Evolution calendar integration')
groups=(gnome)
provides=(gnome-shell)
conflicts=(gnome-shell)
_commit=6ed21e1ce0c1011b58452df6cdde42f30dd386c4 # tags/3.28.3^0
source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
"git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
fix.diff)
sha256sums=('SKIP'
'SKIP'
'11dcffae170776140b1f0c9bed90b8df70e8d3c6694b60ab40bb46235e3ad755')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $_pkgname
# https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/73/commits
git remote add vanvugt https://gitlab.gnome.org/vanvugt/gnome-shell.git || true
git fetch vanvugt
git cherry-pick 6e838439 || bash
# Try to fix docs build
patch -Np1 -i ../fix.diff
# Move the plugin to our custom epiphany-only dir
sed -i "s/'mozilla'/'epiphany'/g" meson.build
git submodule init
git config --local submodule.subprojects/gvc.url "$srcdir/libgnome-volume-control"
git submodule update
}
build() {
arch-meson $_pkgname build -D gtk_doc=true
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
# Must exist; FS#37412
mkdir "$pkgdir/usr/share/gnome-shell/modes"
}