aboutsummaryrefslogtreecommitdiffstats
path: root/community/sysprof/APKBUILD
blob: 28ea7b749ffdc98ff321479bd7681c752d39aca7 (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.36.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
	fix-32-bit-build.patch"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Denable_gtk=true \
		-Dsystemdunitdir=no \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

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

sha512sums="41f99cc3446a6624ea74fcdecd7a29a2e5e2d4086383d59a9064c4a3df5d9b8d08f4903ff4dcc85ffa9c6d42bd84dec5c03f6010fffd4415cc8fecf4dc0b23f4  sysprof-3.36.0.tar.xz
c03fc64a4fdb19e4b3e21ef42e9f21a2af8ed33cdb503314fbb2d826ec6ad4b5e57078191553681be21934aca30442c7b2662facd28a499e86107d148ed96773  fix-32-bit-build.patch"