# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=mutter pkgver=2.31.5 pkgrel=5 pkgdesc="clutter-based window manager for GNOME" url="http://www.gnome.org/" arch="all" license="GPL" depends="zenity" depends_dev="clutter-dev libcanberra-dev gconf-dev startup-notification-dev python-dev" makedepends="$depends_dev gobject-introspection-dev intltool gnome-doc-utils" install="$pkgname.pre-deinstall $pkgname.post-install $pkgname.post-upgrade" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 mutter-gtk2.patch" _builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-compile-warnings=no \ --disable-static || return 1 make || return 1 } package() { cd "$_builddir" export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la } md5sums="0bec58091d4a3b1df6d5d6c05a1dd7cd mutter-2.31.5.tar.bz2 e2f03d7771bf45069f2fba0af8f6b57d mutter-gtk2.patch"