summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83775e3134f891fe0b1f59eda9fb95c4e16bc687 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Daniel YC Lin <dlin.tw at gmail>

_pkgname=tmux-mem-cpu-load
pkgname=$_pkgname-git
pkgver=3.4.0.r10.g75b9ea7
pkgrel=1
pkgdesc="CPU, RAM memory, and load monitor for use with tmux"
url="https://github.com/thewtex/tmux-mem-cpu-load"
arch=('i686' 'x86_64')
license=('APACHE')
makedepends=('cmake')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git+https://github.com/thewtex/tmux-mem-cpu-load)
md5sums=('SKIP')

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

build() {
  cd $pkgname
  cmake .
  make
}

package() {
  cd $pkgname
  install -Dm755 tmux-mem-cpu-load "$pkgdir/usr/bin/tmux-mem-cpu-load"
}