# Template file for 'tiptop'
pkgname=tiptop
version=2.3
revision=1
build_style=gnu-configure
hostmakedepends="flex"
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2"
makedepends="ncurses-devel libxml2-devel"
short_desc="Performance monitoring tool using hardware counters"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://tiptop.gforge.inria.fr/"
distfiles="http://tiptop.gforge.inria.fr/releases/${pkgname}-${version}.tar.gz"
checksum=3f07e958b40acaeab98e9eb1326c9f91b0be0a782c1cc2bd7a9e18d31fab18ca

post_extract() {
	sed -i "s/\`uname -m\`/$XBPS_TARGET_MACHINE/" configure
}

post_install() {
	vsconf tiptoprc
}
