summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b08dc3a93fe6c55f3052b65615f865d6022bf7b4 (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
# Original: Lars Hagström <lars@foldspace.nu>
# Maintainer: Lestofante <lestofante88@gmail.com>
pkgname=s-tui-git
pkgver=v0.8.3.r115.g37ca30c
pkgrel=2
pkgdesc="Terminal UI stress test and monitoring tool "
arch=('any')
url="https://github.com/amanusk/s-tui"
license=('GPLv2')
groups=()
depends=('stress' 'python' 'python-urwid' 'python-psutil' 'python-setuptools')
makedepends=('git')
options=(!emptydirs)
install=
source=("$pkgname"::"git+$url")
sha1sums=('SKIP')
conflicts=("s-tui")

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$pkgname"
  python setup.py install --root="$pkgdir/" --optimize=1
}