# Maintainer: Norbert Pfeiler # Contributor: Christian Assfalg # Patch by Jan Holthuis # Also Maintainers and Contributors of the ›mutter‹ package, this package is based on _realname=mutter pkgname=$_realname-catalyst pkgver=3.22.3 pkgrel=1 pkgdesc="A window manager for GNOME with patches for catalyst compatibility" 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' ) makedepends=('intltool' 'gobject-introspection' 'git' 'gnome-common' ) conflicts=('mutter' "gnome-shell>${pkgver:0:6}+999") provides=("mutter=${pkgver}") groups=('gnome') options=('!emptydirs') _commit=afb4165262ac7b51229663fdf859aee2dcc4b4e8 # tags/3.22.3^0 source=("git+https://git.gnome.org/browse/mutter#commit=$_commit" "startup-notification.patch" "catalyst-workaround.patch" "catalyst mutter cogl.patch") sha256sums=('SKIP' '5a35ca4794fc361219658d9fae24a3ca21a365f2cb1901702961ac869c759366' 'cf6c54cf23dc5898ab105d8bde2d60fd3f6671b319ffef12b0584544bfb23655' '55079a9daddedc22d9fe4dcfe2e87607345dfafb370f8e7fb6a98c0acae3348a') pkgver() { cd "$_realname" git describe --tags | sed 's/-/+/g' } prepare() { cd "$_realname" # https://bugs.archlinux.org/task/51940 patch -Np1 -i ../startup-notification.patch # https://bugzilla.gnome.org/show_bug.cgi?id=741581 echo "Commenting out call to function with XRRChangeOutputProperty to fix issue with catalyst" patch -Np1 < "${srcdir}/catalyst-workaround.patch" # https://bugzilla.gnome.org/show_bug.cgi?id=756306 echo "workaround compatibility shaders used in fw compat ctx in cogl" patch -Np1 -i "${srcdir}/catalyst mutter cogl.patch" echo "Patches applied" NOCONFIGURE=1 ./autogen.sh } build() { cd "$_realname" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/$_realname \ --disable-static \ --disable-schemas-compile \ --enable-compile-warnings=minimum \ --enable-gtk-doc #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 "$_realname" make DESTDIR="$pkgdir" install }