# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=clutter
pkgver=1.26.2
pkgrel=1
pkgdesc="library for creating fast, visually-appealing interfaces"
url="http://www.clutter-project.org/"
arch="all"
license="LGPL"
depends=
depends_dev="gdk-pixbuf-dev json-glib-dev atk-dev pango-dev mesa-dev
	libxcomposite-dev libxi-dev cairo-dev cogl-dev"
makedepends="$depends_dev gobject-introspection-dev intltool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

_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 || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="c8008a1a1f111313d9abaff8d4415f112ddc32a02e08845f3735d33bb25b72b082f133daba06749bb9595eaf1ba83b308d30a413fbbe8dcdc1afdd7077a30937  clutter-1.26.2.tar.xz"
