summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1db53fcb530690b0fa41469eb71fb3fda051fa0 (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
# Maintainer: Jon Gjengset <jon@thesquareplanet.com>
pkgname=cpubars-git
pkgver=r29.49f5ff0
pkgrel=1
pkgdesc="lightweight terminal-based multicore CPU usage monitor"
arch=('any')
url="https://github.com/aclements/cpubars"
license=('MIT')
depends=('ncurses')
makedepends=('git')
source=("${pkgname}::git+https://github.com/aclements/cpubars.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  make cpubars
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 "$srcdir/$pkgname/cpubars" "$pkgdir/usr/bin/cpubars"
}

# vim:set ts=2 sw=2 et: