summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6baeb11fe524646b209bab3107ef96c9b4650e3 (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
34
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Michal Wojdyla < micwoj9292 at gmail dot com >
# Contributor: Andrejs Mivreņiks <gim at fastmail dot fm>
pkgname=nbwmon-git
pkgver=0.5.2.r15.gf159b35
pkgrel=3
pkgdesc="ncurses bandwidth monitor"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/causes-/nbwmon"
license=('custom:MIT/X')
depends=('ncurses')
makedepends=('git')
provides=('nbwmon')
conflicts=('nbwmon')
source=("${pkgname%-*}::git+https://github.com/causes-/nbwmon.git")
sha256sums=('SKIP')

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

build() {
  cd "${pkgname%-*}"
	make LDFLAGS="-Wl,-z,now"
}

package() {
  cd "${pkgname%-*}"
	make MANPREFIX=/usr/share/man DESTDIR="${pkgdir}" PREFIX='/usr' install
  install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: