upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / iptraf-ng / trunk / PKGBUILD
blob091d1a29c2752283715ddedfcbff8555bfa7c088
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: sh0 <mee@sh0.org>
5 pkgname=iptraf-ng
6 pkgver=1.2.1
7 pkgrel=1
8 pkgdesc='Console-based network monitoring utility'
9 url='https://github.com/iptraf-ng/iptraf-ng'
10 arch=('x86_64')
11 depends=('ncurses')
12 license=('GPL2')
13 replaces=('iptraf')
14 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
15 sha512sums=('44d36fc92cdbf379f62cb63638663c3ee610225b9c28d60ee55e62e358f398a6b0db281129327b3472e45fb553ee3dd605af09c129f2233f8839ae3dbd799384')
16 b2sums=('9b8df7fa24711b401464d492993b9c27424ec7ab6230218d1b792a66e5fb60c99b5cdb92ac1b5a6da578c4b10da79333f248f14d10e74057118aadf50263a4ed')
18 build() {
19   cd ${pkgname}-${pkgver}
20   make CFLAGS="${CFLAGS} -std=gnu99 -D_GNU_SOURCE" \
21     LDFLAGS="${LDFLAGS}" \
22     CPPFLAGS="${CPPFLAGS}" \
23     sbindir_relative=bin \
24     prefix=/usr
27 package() {
28   cd ${pkgname}-${pkgver}
29   make DESTDIR="${pkgdir}" prefix=/usr sbindir_relative=bin install
30   install -Dm 644 iptraf-ng-logrotate.conf -t "${pkgdir}/etc/logrotate.d"
33 # vim: ts=2 sw=2 et: