# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-system-monitor
pkgver=3.26.0
pkgrel=0
pkgdesc="GNOME system monitor"
url="http://www.gnome.org/"
arch="all"
license="GPL"
makedepends="gnome-desktop-dev libgtop-dev gtkmm3-dev 
	libxml2-dev librsvg-dev itstool libxml2-utils libxslt
	libgtop-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="c2593371d956a4c11ad9ac4afabc996c02d743f9ba443192b0d955ab42464a02ad3fe19398b9489d33d552fdfdc2fb615e85d4dcb9342b821cb0b590fd3c3043  gnome-system-monitor-3.26.0.tar.xz"
