# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-system-monitor
pkgver=1.20.0
pkgrel=0
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 \
		--enable-static=no \
		--prefix=/usr 
	make
}

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

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

sha512sums="5676740e0d581f3e46540c90f2df6ba37fdf9661df08b32896cac03c6b3282a052bfa3c1f7e61d4a3f1a04b3aedd5162de65b64586950dc1c2841f7bfea0b2be  mate-system-monitor-1.20.0.tar.xz"
