summaryrefslogtreecommitdiff
path: root/community/trickle/PKGBUILD
blob: 5bafbb9400e6dc30fcd937fd78e3262513a1a905 (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
# $Id: PKGBUILD 68040 2012-03-17 11:08:43Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor Romain Bouchaud-Leduc <r0m1.bl@camaris.org>

pkgname=trickle
pkgver=1.07
pkgrel=6
pkgdesc="Lightweight userspace bandwidth shaper"
arch=('i686' 'x86_64' 'mips64el')
url="http://monkey.org/~marius/trickle"
license=('BSD')
depends=('libevent')
source=("http://monkey.org/~marius/trickle/${pkgname}-${pkgver}.tar.gz")
md5sums=('860ebc4abbbd82957c20a28bd9390d7d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  sed -i "s|.*in_addr_t.*||g" config.h
  make -j1
}

package(){
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}