aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tiptop/APKBUILD
blob: 707aafaaf7e574d3d11fbe0e9d09749d3f24e566 (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
# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
pkgname=tiptop
pkgver=2.3.1
pkgrel=0
pkgdesc="Tiptop: Hardware Performance Counters for the Masses"
url="http://tiptop.gforge.inria.fr"
# Note: This tool requires two things to work:
# 1: hardware counters in the cpu itself
# 2: support in the kernel perf framework to use them
#
# Right now this applies to x86 only. Note this tool will compile
# elsewhere but without the aforementioned hardware support and kernel
# support, nothing of use will happen when run.
arch="x86 x86_64"
license="GPL-2.0"
makedepends="byacc flex linux-headers ncurses-dev libxml2-dev"
subpackages="$pkgname-doc"
source="http://tiptop.gforge.inria.fr/releases/tiptop-$pkgver.tar.gz"
# Note, arg parsing appears to happen after attempting a perf syscall
# so while it would be nice to run tiptop -h to validate the compile worked
# there is a chance it might error out for no reason than the system building
# not having support for the syscall or hardware.
options="!check"

build() {
	./configure --prefix=/usr
	make
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="73d275bc3957583524c872b401cf4fa773de7b4e7b7177f1787851f43e7c4aeefd953eb50b2dbce3babfc7a1c46707370ba4ad06998260177994b2eafb91395b  tiptop-2.3.1.tar.gz"