aboutsummaryrefslogtreecommitdiffstats
path: root/community/sysprof/APKBUILD
blob: 9a37d6781df4b072583df24181b145bd3ec34d49 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=sysprof
pkgver=3.34.0
pkgrel=0
pkgdesc="System-wide profiler for Linux"
url="http://sysprof.com/"
arch="all !s390x" # tests failing
license="GPL-2.0-or-later"
depends_dev="$pkgname=$pkgver-r$pkgrel" # sysprof's lib setup is a bit weird...
makedepends="meson gtk+3.0-dev itstool glib-dev polkit-dev elogind-dev
	libdazzle-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() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Denable_gtk=true \
		-Dsystemdunitdir=no \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="f95187bfb354bca9e2268ec0a432097f6897c4cb9186a14908b9f40fc06cd1775aa068c0a02cde40e9776caeff39a8e8b8a000e65cfab42152456976e729b7b4  sysprof-3.34.0.tar.xz"