1 # Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
5 pkgdesc="Generate reports on memory usage."
7 url="http://www.selenic.com/smem/"
10 makedepends=("mercurial")
11 optdepends=("python-matplotlib: for chart generation")
15 _hgroot="http://selenic.com/repo"
19 msg "Fixing smem python interpreter"
20 sed -i "1s/python/python2/" ${srcdir}/${_hgrepo}/smem
21 msg "Compiling smemcap"
22 gcc -O2 ${srcdir}/${_hgrepo}/smemcap.c -o ${srcdir}/${_hgrepo}/smemcap
26 install -D -m 755 ${srcdir}/${_hgrepo}/smem ${pkgdir}/usr/bin/smem
27 install -D -m 755 ${srcdir}/${_hgrepo}/smemcap ${pkgdir}/usr/bin/smemcap
28 install -D -m 644 ${srcdir}/${_hgrepo}/smem.8 ${pkgdir}/usr/share/man/man8/smem.8