# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Geoffroy Carrier # Previous Contributor: Eric Belanger # Previous Contributor: aeolist pkgname=sysprof pkgver=1.0.12 pkgrel=3 pkgdesc="A sampling CPU profiler that uses a Linux kernel module to profile the entire system" arch=('i686' 'x86_64') url="http://www.daimi.au.dk/~sandmann/sysprof/" license=("GPL") arch=('i686' 'x86_64') depends=('libglade') install=sysprof.install source=(http://www.daimi.au.dk/~sandmann/$pkgname/$pkgname-$pkgver.tar.gz) build() { _KERNELVER=$(uname -r) cd "$srcdir/$pkgname-$pkgver" sed -i 's/-lbfd/-lbfd-2.19.1.20090418/' configure ./configure --prefix=/usr --disable-kernel-module || return 1 # making/installing app make || return 1 make DESTDIR="$pkgdir" install || return 1 # making/installing kernel module cd module make || return 1 install -D -m644 sysprof-module.ko $pkgdir/lib/modules/$_KERNELVER/extra/sysprof-module.ko } md5sums=('9566040f3175678e75133b1c52a473f8')