PKGBUILDs/community/sysprof/PKGBUILD
2009-10-09 21:15:33 -05:00

30 lines
1.1 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# 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.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')