summaryrefslogtreecommitdiff
path: root/community/smem/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/smem/PKGBUILD')
-rw-r--r--community/smem/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/smem/PKGBUILD b/community/smem/PKGBUILD
new file mode 100644
index 000000000..ee5f99ff4
--- /dev/null
+++ b/community/smem/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 41843 2011-03-09 18:16:06Z dreisner $
+# Maintainer: Dave Reisner <d@falconindy.com>
+# Contributor: Isaac Dupree <id@isaac.cedarswampstudios.org>
+# Contributor: Sebastien Duquette <ekse.0x@gmail.com>
+
+pkgname=smem
+pkgver=1.0
+pkgrel=1
+pkgdesc="Generate reports on memory usage."
+url="http://www.selenic.com/smem/"
+license=("GPL")
+depends=('python2')
+optdepends=('python-matplotlib: for chart generation')
+arch=('i686' 'x86_64')
+source=("http://www.selenic.com/smem/download/${pkgname}-${pkgver}.tar.gz")
+md5sums=('5620f20cae4d4f0e8eb33bdc2736b0f3')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ sed -i '1s/python$/python2/' smem
+ gcc $CFLAGS $LDFLAGS smemcap.c -o 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
+}
+