# $Id:
# Maintainer : Martin Wimpress <code@flexion.org>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Ali Gündüz <gndz.ali@gmail.com>

pkgname=ps_mem
pkgver=3.5
pkgrel=1
pkgdesc="List processes by memory usage"
arch=('any')
url="http://www.pixelbeat.org/scripts/"
license=('GPL')
# Compatible with both Python 2.x and 3.x
depends=('python')
makedepends=('git')
source=("${pkgname}::git+https://github.com/pixelb/${pkgname}.git#commit=7e295aecfe4f83c7bbf02c0f4c78c198ad20db22")
md5sums=('SKIP')

package() {
  cd "${srcdir}/${pkgname}"
  install -D -m 755 ps_mem.py "${pkgdir}/usr/bin/${pkgname}"
  install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -D -m 644 "${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}

