summaryrefslogtreecommitdiff
path: root/community/bwbar/PKGBUILD
blob: 71dcf16d39468eb1deb5791183fb92d7c7bba754 (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
# $Id: PKGBUILD 63506 2012-02-05 11:52:02Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Mark Rosenstand <mark@borkware.net>

pkgname=bwbar
pkgver=1.2.3
pkgrel=3
arch=(i686 x86_64 mips64el)
pkgdesc="Generates text and graphical readout of the current bandwidth usage."
url="http://www.kernel.org/pub/software/web/bwbar/"
license=("GPL")
depends=('libpng')
#source=(http://www.kernel.org/pub/software/web/$pkgname/$pkgname-$pkgver.tar.gz)
source=(http://arch.p5n.pp.ru/~sergej/dl/2011/$pkgname-$pkgver.tar.gz)
md5sums=('766265ddf0615b552ff19d12f78be719')

build() {
  cd $srcdir/$pkgname-$pkgver
  sed -i '1,1i#include <zlib.h>' bwbar.c
  sed -i 's|png_ptr->jmpbuf|png_jmpbuf(png_ptr)|' bwbar.c
  ./configure
  make
  install -D -m755 bwbar $pkgdir/usr/bin/bwbar
}