aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mutter/APKBUILD
blob: d00b975035b9f8a395850d41aa8bf81bd7e53d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=mutter
pkgver=2.31.5
pkgrel=1
pkgdesc="clutter-based window manager for GNOME"
url="http://www.gnome.org/"
arch=""
license="GPL"
depends="zenity"
depends_dev="clutter-dev libcanberra-dev gconf-dev startup-notification-dev python-dev"
makedepends="$depends_dev gobject-introspection intltool gnome-doc-utils"
install="$pkgname.pre-deinstall $pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc"
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 \
		--disable-static || return 1
	make || return 1
}

package() {
	cd "$_builddir"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="0bec58091d4a3b1df6d5d6c05a1dd7cd  mutter-2.31.5.tar.bz2
e2f03d7771bf45069f2fba0af8f6b57d  mutter-gtk2.patch"