summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ff60bb62878a8468fb37437dd4b055f7f185274 (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
# Maintainer: Paul Fauchon <p.fauchon at gmail dot com>
pkgname=unifi-throughput-ncurses
pkgver=r63.a25fe6e
pkgrel=1
pkgdesc="Display unifi controller throughput in a terminal"
arch=('x86_64')
url="https://github.com/lamarios/unifi-throughput-ncurses/"
license=('MIT')
depends=('ncurses')
makedepends=('git' 'go')

source=("git://github.com/lamarios/unifi-throughput-ncurses/")

sha512sums=('SKIP')

pkgver() {
  cd unifi-throughput-ncurses
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd unifi-throughput-ncurses
  make
  mkdir -p $pkgdir/usr/bin
  cp unifi-throughput $pkgdir/usr/bin/unifi-throughput
}