summaryrefslogtreecommitdiff
path: root/community/sysprof/APKBUILD
blob: 70956d7d717781c695146822588a20a809a08d1e (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=sysprof
pkgver=3.46.0
pkgrel=2
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="
	desktop-file-utils
	elogind-dev
	glib-dev
	gtk4.0-dev
	itstool
	json-glib-dev
	libadwaita-dev
	libunwind-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 \
		-Dgtk=true \
		-Dsystemdunitdir=systemd \
		. 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
	rm -rf "$pkgdir"/usr/systemd
}

sha512sums="
ac248e2a06d2f7905bebae4e685dd320e3ac85097e33b9c6b8482a4647a5bfcaadc4d9a1fe117b3a74cb855d6c72d9a1453a37d7b64762a223c0fe5da2653a87  sysprof-3.46.0.tar.xz
"