diff options
Diffstat (limited to 'community/smem/PKGBUILD')
-rw-r--r-- | community/smem/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/smem/PKGBUILD b/community/smem/PKGBUILD new file mode 100644 index 000000000..ed89c55d9 --- /dev/null +++ b/community/smem/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 91603 2013-05-25 11:22:11Z bpiotrowski $ +# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org> +# Contributor: Dave Reisner <d@falconindy.com> +# Contributor: Isaac Dupree <id@isaac.cedarswampstudios.org> +# Contributor: Sebastien Duquette <ekse.0x@gmail.com> + +pkgname=smem +pkgver=1.3 +pkgrel=2 +pkgdesc="Generate reports on memory usage." +url="http://www.selenic.com/smem/" +license=("GPL") +depends=('python2') +optdepends=('python2-matplotlib: for chart generation') +arch=('i686' 'x86_64') +source=("http://www.selenic.com/smem/download/$pkgname-$pkgver.tar.gz") +md5sums=('dd849102610aadb9f64379db09e73d41') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + sed -i '1s/python$/python2/' smem + make smemcap +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 smem "$pkgdir/usr/bin/smem" + install -Dm755 smemcap "$pkgdir/usr/bin/smemcap" + install -Dm644 smem.8 "$pkgdir/usr/share/man/man8/smem.8" +} + |