updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / exmap / PKGBUILD
blob86633541d9869ad587cead7693dd730d3befbf52
1 # Contributor: lucke <lucke at o2 dot pl>
3 pkgname=exmap
4 pkgver=0.10
5 pkgrel=10
6 pkgdesc="Memory analysis tool which allows you to accurately determine how much physical memory and swap is used by individual processes and shared libraries."
7 url="http://www.berthels.co.uk/exmap/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('pcre' 'boost' 'gtkmm')
11 install=exmap.install
12 source=(http://www.berthels.co.uk/exmap/download/$pkgname-$pkgver.tgz
13         gcc44.patch
14         kernel31.patch
15         64bit.patch)
17 md5sums=('b4f87fa02f6a218416b77ad4b9f48d74'
18          'd1ffb5cef6b7d43a0cb3fdeb2e6fe9e9'
19          'ba7975378837194d5f4cd37d501ea994'
20          'bcc178bee5f503e69f2f56eac50b8435')
22 _kernver=2.6.32-ARCH
24 build() {
25   unset LDFLAGS
26   cd $startdir/src/$pkgname-$pkgver
27   patch -Np1 -i ../gcc44.patch || return 1
28   patch -Np1 -i ../kernel31.patch || return 1
29   patch -Np1 -i ../64bit.patch || return 1
30   sed -i -e "s#\$(shell uname -r)#${_kernver}#g" $startdir/src/$pkgname-$pkgver/kernel/Makefile 
31   make || return 1
32   install -D -m755 src/gexmap $startdir/pkg/usr/bin/gexmap
33   install -D -m755 kernel/exmap.ko $startdir/pkg/lib/modules/$_kernver/misc/exmap.ko
34   sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$pkgname.install