# 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.13
pkgrel=1
pkgdesc="List processes by memory usage"
arch=('any')
url="https://github.com/pixelb/ps_mem"
license=('GPL')
depends=('python')
#makedepends=('git')
#source=("${pkgname}::git+https://github.com/pixelb/${pkgname}.git#commit=bfc18bf3d2af0e04")
#md5sums=('SKIP')
# author appears to be doing real releases now
source=("$pkgname-$pkgver.tgz::https://github.com/pixelb/ps_mem/archive/v$pkgver.tar.gz")
md5sums=('b8cbdee431ce282ffa346fd5d77e12e3')

package() {
  cd "$srcdir/$pkgname-$pkgver"
  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"
}

