aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tiptop/APKBUILD
blob: a5889ab51998dcc25029be670a4c3bcdb4d0b1c4 (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
# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
pkgname=tiptop
pkgver=2.3
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://$pkgname.gforge.inria.fr/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
# 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() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}
sha512sums="e09ad1fd7063c9b8b7351b5c114cfa1f8e1737b1cfb73c4c869612c3887b060a838c33bdee330349225b48cd73d295fef24cd36c6eb36b566d20adff2dae53d5  tiptop-2.3.tar.gz"