summaryrefslogtreecommitdiff
path: root/community/metacity
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-04-11 17:29:20 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-04-11 17:29:20 +0200
commit7a42705e87e0da5d2417b4293729e3ee1ae3b33c (patch)
tree04aa72c4fdff134e2c5ae9f539e092d5faafe808 /community/metacity
parente6ced89f44186539d8fedf73b62024aa2214230e (diff)
parent337402b957bab442da9e0d46ee7a8d8f32ede3ce (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/botan/PKGBUILD community/qgo/PKGBUILD community/ragel/PKGBUILD extra/avahi/PKGBUILD extra/kdepim/PKGBUILD extra/libva/PKGBUILD extra/libwnck3/PKGBUILD extra/orc/PKGBUILD extra/python/PKGBUILD extra/python2/PKGBUILD extra/qt3/PKGBUILD
Diffstat (limited to 'community/metacity')
-rw-r--r--community/metacity/PKGBUILD34
-rw-r--r--community/metacity/fix_compositing_startup.patch12
-rw-r--r--community/metacity/metacity.install19
3 files changed, 65 insertions, 0 deletions
diff --git a/community/metacity/PKGBUILD b/community/metacity/PKGBUILD
new file mode 100644
index 000000000..0131d328f
--- /dev/null
+++ b/community/metacity/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 87887 2013-04-08 14:38:04Z heftig $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=metacity
+pkgver=2.34.13
+pkgrel=1.1
+pkgdesc="A window manager for GNOME"
+arch=(i686 x86_64 'mips64el')
+license=('GPL')
+depends=('dconf' 'gtk2' 'gsettings-desktop-schemas' 'libcanberra' 'libgtop' 'libsm' 'startup-notification' 'zenity')
+makedepends=('intltool' 'yelp-tools')
+url="http://www.gnome.org"
+groups=('gnome')
+options=('!libtool' '!emptydirs')
+install=metacity.install
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
+ fix_compositing_startup.patch)
+sha256sums=('8cf4dbf0da0a6f36357ce7db7f829ec685908a7792453c662fb8184572b91075'
+ '5094a0ffe3eb8289ed752829877c2e1b743eddf938ad3fc92fb4574b42765ae2')
+
+build() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i "${srcdir}/fix_compositing_startup.patch"
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --libexecdir=/usr/lib/metacity \
+ --localstatedir=/var --disable-static \
+ --disable-schemas-compile
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/metacity/fix_compositing_startup.patch b/community/metacity/fix_compositing_startup.patch
new file mode 100644
index 000000000..56b218ae7
--- /dev/null
+++ b/community/metacity/fix_compositing_startup.patch
@@ -0,0 +1,12 @@
+diff -Naur metacity-2.34.5.orig/src/compositor/compositor-xrender.c metacity-2.34.5/src/compositor/compositor-xrender.c
+--- metacity-2.34.5.orig/src/compositor/compositor-xrender.c 2011-11-10 15:14:34.000000000 +0100
++++ metacity-2.34.5/src/compositor/compositor-xrender.c 2012-08-28 14:23:04.093750568 +0200
+@@ -3066,6 +3057,8 @@
+ #endif
+
+ xrc->enabled = TRUE;
++ xrc->show_redraw = FALSE;
++ xrc->debug = FALSE;
+ g_timeout_add (2000, (GSourceFunc) timeout_debug, xrc);
+
+ return compositor;
diff --git a/community/metacity/metacity.install b/community/metacity/metacity.install
new file mode 100644
index 000000000..ba0feffc1
--- /dev/null
+++ b/community/metacity/metacity.install
@@ -0,0 +1,19 @@
+pkgname=metacity
+
+post_install() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+pre_upgrade() {
+ if [ -f /usr/share/gconf/schemas/$pkgname.schemas ]; then
+ /usr/sbin/gconfpkg --uninstall $pkgname
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}