# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=clutter
pkgver=1.26.4
pkgrel=0
pkgdesc="OpenGL-based interactive canvas library"
url="https://gnome.org"
arch="all"
options="!check"  # Test suite skipped all tests.
license="LGPL-2.0+ AND MIT AND LGPL-2.1+ AND GPL-2.0+"
depends=""
makedepends="glib-dev mesa-dev cogl-dev cairo-dev pango-dev json-glib-dev
	atk-dev vala gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/clutter/1.26/clutter-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6d43ac09df7671fa2bda74d1231166e8331f3ef1dbe0d167225033b3ddae7377d1062db81b73fc498c2e9f0db467bf4febb7306a6f40c9ef0266dac2a397f43a  clutter-1.26.4.tar.xz"