upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / iftop / repos / community-x86_64 / PKGBUILD
blob843775878f65e4e7e705e928f695819f1ecf1148
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Daenyth <Daenyth+Arch at gmail dot com>
3 # Contributor: Jeff Mickey <jeff@archlinux.org>
4 # Contributor: Alexander Mieland (dma147) <dma147@linux-stats.org>
5 # Contributor: slubman <slubman@slubman.net>
7 pkgname=iftop
8 pkgver=1.0pre4
9 pkgrel=5
10 pkgdesc="Display bandwidth usage on an interface"
11 arch=('x86_64')
12 url="http://www.ex-parrot.com/~pdw/iftop/"
13 license=('GPL')
14 depends=('libpcap' 'ncurses')
15 source=("http://www.ex-parrot.com/~pdw/$pkgname/download/$pkgname-$pkgver.tar.gz"
16         mac-address-fix.patch)
17 sha512sums=('abd74e8025bb82fef9ebab4997b1d018201a523d47c0128128ca37797490046538d74758dc4471735c22b890e5bd238ad6b2a30776d465138ede367cdd263d22'
18             '6906bae0eb6beb2e8245648a74601af3024b82d7e826fe49c40a272f98a14b52c39e3caf5985b5f16c460e3096bf6d87e6eb84c166e577f67596f887d997250c')
20 prepare() {
21   cd $pkgname-$pkgver
22   # FS#75357
23   patch -p0 -i ../mac-address-fix.patch
26 build() {
27   cd $pkgname-$pkgver
29   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
31   ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
32   make
35 package() {
36   cd $pkgname-$pkgver
38   make DESTDIR="$pkgdir" install