summaryrefslogtreecommitdiff
path: root/community/sysprof/APKBUILD
blob: e7702e69dfd7d0dac80604063d22bce4b7595484 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=sysprof
pkgver=3.38.1
pkgrel=0
pkgdesc="System-wide profiler for Linux"
url="http://sysprof.com/"
arch="all"
license="GPL-2.0-or-later"
depends_dev="$pkgname=$pkgver-r$pkgrel" # sysprof's lib setup is a bit weird...
makedepends="
	elogind-dev
	glib-dev
	gtk+3.0-dev
	itstool
	libdazzle-dev
	meson
	polkit-dev
	"
options="!check" # test-model-filter fails
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/sysprof/${pkgver%.*}/sysprof-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Denable_gtk=true \
		-Dsystemdunitdir=no \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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

sha512sums="7ba3dd51bd4055dcdf4d46ff87e46537afe42ba009809fdee5ba0ebcdf70776d9e1ff812714096d33b09ac57d459707b92b1ca07682e2f3888b612ca74820442  sysprof-3.38.1.tar.xz"