1 # Contributor: lucke <lucke at o2 dot pl>
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/"
10 depends=('pcre' 'boost' 'gtkmm')
12 source=(http://www.berthels.co.uk/exmap/download/$pkgname-$pkgver.tgz
17 md5sums=('b4f87fa02f6a218416b77ad4b9f48d74'
18 'd1ffb5cef6b7d43a0cb3fdeb2e6fe9e9'
19 'ba7975378837194d5f4cd37d501ea994'
20 'bcc178bee5f503e69f2f56eac50b8435')
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
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