updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ntrack-bzr / PKGBUILD
blobb464c3f407719f4486eca0338c61f04c3fbf8ed8
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=ntrack-bzr
4 pkgver=312
5 pkgrel=1
6 pkgdesc="A network connectivity tracking library"
7 arch=('i686' 'x86_64')
8 url="https://launchpad.net/ntrack"
9 license=('LGPL')
10 depends=('qt' 'libnl' 'gcc-libs')
11 makedepends=('python2' 'bzr')
12 provides=('ntrack')
13 conflicts=('ntrack')
14 options=('!emptydirs' '!libtool')
16 _bzrtrunk="lp:ntrack"
17 _bzrmod="ntrack"
19 build() {
20   cd "${srcdir}"
22   msg "Connecting to the server...."
24   if [ -d ${_bzrmod} ]; then
25     bzr up ${_bzrmod}
26     msg "The local files are updated."
27   else
28     bzr co ${_bzrtrunk} ${_bzrmod}
29   fi
31   msg "BZR checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "${_bzrmod}-build"
35   cp -r "${_bzrmod}" "${_bzrmod}-build"
36   cd "${_bzrmod}-build"
38   ./autogen.sh
39   ./configure --prefix=/usr \
40     --sysconfdir=/etc \
41     --localstatedir=/var
42   make
45 package() {
46   cd "${srcdir}/${_bzrmod}-build"
47   make DESTDIR="${pkgdir}" install