# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-desktop
pkgver=1.20.0
pkgrel=0
pkgdesc="The MATE Desktop Environment"
url="http://wiki.mate-desktop.org/mate-desktop"
arch="all"
license="GPL-2.0"
depends="mate-common yelp-tools"
makedepends="startup-notification itstool intltool dconf-dev gtk+3.0-dev
	libxrandr-dev libxml2-utils"
subpackages="$pkgname-lang $pkgname-dev $pkgname-doc"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-static=no \
		--sysconfdir=/etc \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="7b8f7f6f900d4d8b16892a145b7570e0be607a8a062f039feaf8d97d1ff1c82e18691c774bd050ec7f56e3745fa3870e7975a8e9cf6bf5f87ea45edc60077266  mate-desktop-1.20.0.tar.xz"
