# $Id$ # Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Ionut Biru # Contributor: Michael Kanis # Patched package maintainer: Saren Arterius # Patch origin: https://gist.github.com/DeadMetaler/12622bf9415c1100f2d436ffbd6778c6 pkgname=mutter-781835-workaround _pkgname=mutter pkgver=3.26.2 pkgrel=1 pkgdesc="A window manager for GNOME. This package reverts a commit which may causes performance problems for nvidia driver users." url="https://git.gnome.org/browse/mutter" arch=(i686 x86_64) license=(GPL) depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas libcanberra startup-notification zenity libsm gnome-desktop upower libxkbcommon-x11 gnome-settings-daemon libgudev libinput pipewire) makedepends=(intltool gobject-introspection git gnome-common) provides=(mutter) conflicts=(mutter) groups=(gnome) options=(!emptydirs) _commit=17e5cd8c46434c030037664242a44d8c67774e70 # tags/3.26.2^0 source=("git+https://git.gnome.org/browse/mutter#commit=$_commit" startup-notification.patch) sha256sums=('SKIP' '5a35ca4794fc361219658d9fae24a3ca21a365f2cb1901702961ac869c759366') pkgver() { cd $_pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $_pkgname # Revert offending commit git revert -n 383ba566bd7c2a76d0856015a66e47caedef06b6 # https://bugs.archlinux.org/task/51940 patch -Np1 -i ../startup-notification.patch NOCONFIGURE=1 ./autogen.sh } build() { cd $_pkgname ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libexecdir=/usr/lib/$_pkgname --disable-static \ --disable-schemas-compile --enable-compile-warnings=minimum \ --enable-gtk-doc --enable-egl-device --enable-remote-desktop #https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' \ -i {.,cogl,clutter}/libtool make } package() { cd $_pkgname make DESTDIR="$pkgdir" install }