summaryrefslogtreecommitdiff
path: root/community/smem/PKGBUILD
blob: 7f82536578dad623e33e83d59937a54318b57d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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' 'mips64el')
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"
}