summaryrefslogtreecommitdiff
path: root/community/gnome-system-monitor/APKBUILD
blob: 1ed3054fcceca44b8bd733fba51acfea12ee5bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-system-monitor
pkgver=44.0
pkgrel=2
pkgdesc="GNOME system monitor"
url="https://www.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	glibmm-dev
	gnome-desktop-dev
	gtkmm3-dev
	itstool
	libhandy1-dev
	libgtop-dev
	librsvg-dev
	libxml2-dev
	libxml2-utils
	libxslt
	meson
	polkit-dev
	"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-system-monitor/${pkgver%.*}/gnome-system-monitor-$pkgver.tar.xz"

build() {
	# localtime_r
	CFLAGS="$CFLAGS -D_BSD_SOURCE" \
	abuild-meson \
		-Db_lto=true \
		-Dsystemd=false \
		output .
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
052dcdc927ad53ea601f1f3da6a921fe21b04f69aaa8b75a5096fdcdac5706391180c476b5c87a98012fa7b5dc6c5c43b8c88c30a38b12868c4188020e8ec3b8  gnome-system-monitor-44.0.tar.xz
"