summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 396303faeeda32de1edc7bc6839d7265db9d7e6b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Sean Greenslade <aur AT seangreenslade DOT com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daenyth <Daenyth+Arch at gmail dot com>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Alexander Mieland (dma147) <dma147@linux-stats.org>
# Contributor: slubman <slubman@slubman.net>

_pkgbase=iftop
pkgname=${_pkgbase}-git
pkgver=r287.8d76ef0
pkgrel=2
pkgdesc="Display bandwidth usage on an interface - git version"
arch=('x86_64')
url="http://www.ex-parrot.com/~pdw/iftop/"
license=('GPL')
depends=('libpcap' 'ncurses')
makedepends=('git')
provides=('iftop')
conflicts=('iftop')
source=("git+https://code.blinkace.com/pdw/iftop.git")
sha512sums=('SKIP')

pkgver() {
  cd "${_pkgbase}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${_pkgbase}"

  autoheader
  aclocal
  automake --add-missing
  autoupdate
  autoconf
}

build() {
  cd "${_pkgbase}"

  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

  ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
  make
}

package() {
  cd "${_pkgbase}"

  make DESTDIR="$pkgdir" install
}