# $Id: PKGBUILD 56814 2011-10-13 17:07:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Previous Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Previous Contributor: aeolist <aeolist@hotmail.com>

pkgname=sysprof
pkgver=1.1.8
pkgrel=1
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")
source=(http://www.daimi.au.dk/~sandmann/$pkgname/$pkgname-$pkgver.tar.gz)
depends=('libglade' 'binutils')
makedepends=('libglade' 'binutils' 'kernel26-headers')
md5sums=('a46e24250988d96d8fc7b30773d55222')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}