summaryrefslogtreecommitdiff
path: root/community/smem
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/smem
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/smem')
-rw-r--r--community/smem/PKGBUILD33
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"
+}
+