# Maintainer: Mitch Tishmack 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"