# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-control-center
pkgver=1.19.0
pkgrel=0
pkgdesc="MATE's main interface for configuration of various aspects of your desktop"
url="https://github.com/mate-desktop/mate-control-center"
arch="all"
license="GPL-2.0"
depends="mate-common mate-menus mate-desktop mate-icon-theme desktop-file-utils"
makedepends="dbus-glib-dev libtool intltool itstool gtk+3.0-dev
	dconf-dev mate-menus-dev libunique-dev marco-dev mate-settings-daemon-dev
	libmatekbd-dev libxklavier-dev mate-desktop-dev startup-notification-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="061567b28eb91e864ea3f1fb8c0d8f2a33b7f06409cf6f982ef2131ab74bff4e3f4d5c098adef0d329d9a57fb7f591335ea1a753f9477714f8453f2f63ea72de  mate-control-center-1.19.0.tar.xz"
