# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-system-monitor
pkgver=1.18.0
pkgrel=2
pkgdesc="A system monitor for MATE"
url="https://github.com/mate-desktop/mate-system-monitor"
arch="all"
license="GPL-2.0"
depends="mate-icon-theme"
makedepends="gtk+3.0-dev libwnck3-dev gtkmm3-dev libgtop-dev
	librsvg-dev glibmm-dev itstool linux-headers libxml2-utils"
subpackages="$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 \
		--enable-all-themes
	make
}

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

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

sha512sums="95e85b87f52db32f3c192c29b866020b78638462dd362376180087f24c041b690d3bb66d8ad1174abc89051450efe1f19171746204c68455ddcc6e965339db82  mate-system-monitor-1.18.0.tar.xz"
