updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / tcprstat-bzr / PKGBUILD
blob047bcd47886b553b4c24f5cfae549729a3139514
1 # Maintainer: Simon Perry <pezz [at] sanxion [dot] net>
3 pkgname=tcprstat-bzr
4 _pkgname=tcprstat
5 pkgver=73
6 pkgrel=1
7 pkgdesc="A protocol-agnostic libpcap-based tool for measuring TCP response times"
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/tcprstat"
10 license=('GPL')
11 depends=('libpcap')
12 makedepends=('bzr')
13 provides=(${_pkgname})
14 conflicts=(${_pkgname})
15 options=('!libtool' '!emptydirs')
16 source=(configure.patch makefile.patch)
17 md5sums=('a0a259c1498927b0d14f94f7178ac910'
18          '7395c29d5937ee04e137a990adb5a054')
20 _bzrtrunk="lp:${_pkgname}"
21 _bzrmod="${_pkgname}"
23 build() {
24   cd "${srcdir}"
26   msg "Connecting to the server...."
28   if [ -d ${_bzrmod} ]; then
29     bzr up ${_bzrmod} -r ${pkgver}
30     msg "The local files are updated."
31   else
32     bzr co ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
33   fi
35   msg "bzr checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "${_bzrmod}-build"
39   cp -r "${_bzrmod}" "${_bzrmod}-build"
40   chmod 700 "${_bzrmod}-build/bootstrap"
41   cd "${_bzrmod}-build"
43   patch -Np1 -i $srcdir/configure.patch
44   patch -Np1 -i $srcdir/makefile.patch
46   ./bootstrap
47   ./configure --prefix=/usr --disable-static
49   make
50   make DESTDIR=$pkgdir install
52 # vim: ts=2 sw=2 et: