# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-usage
pkgver=3.38.0
pkgrel=0
pkgdesc="System resources status"
url="https://wiki.gnome.org/Apps/Usage"
arch="all !s390x" # libhandy1
license="GPL-3.0-or-later"
makedepends="meson glib-dev gtk+3.0-dev libdazzle-dev libgtop-dev vala
	libhandy1-dev tracker-dev"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-dbg"
source="https://download.gnome.org/sources/gnome-usage/${pkgver%.*}/gnome-usage-$pkgver.tar.xz
	79.patch"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="31674a736829b460d0a64bf484ee2a59d85127bb91a48c57ab7069a88038a81ccc404879cbe851f2d9cbcb3a58661d1379172b954a2dd12a3a2d03004c0e682d  gnome-usage-3.38.0.tar.xz
e34049bc27a50aeaece50ef4f6ba1614347336de33e85a320748211d311f1ae0d93f8720334c23c5dbcd57ff7f2af207494d4f14744931fab81884879c5b4b04  79.patch"
