updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tunnelmanager-bzr / PKGBUILD
blob6b8856c571c88e581e9a5717bdecdb000d8aa77c
1 # Maintainer: H.Gökhan Sarı <th0th@returnfalse.net>
2 # Contributor: Victor Noel
3 pkgname=tunnelmanager-bzr
4 pkgver=65
5 pkgrel=1
6 pkgdesc="Tunnel Manager allows users to easily manage a configurable list of SSH tunnels and their required keys."
7 arch=('any')
8 url="https://launchpad.net/tunnelmanager"
9 license=('GPL2')
10 depends=('python2' 'pygtk' 'iproute2')
11 makedepends=('bzr')
12 provides=('tunnelmanager')
14 _bzrtrunk="https://launchpad.net/tunnelmanager/trunk"
15 _bzrmod="tunnelmanager"
17 build() {
18 cd "$srcdir"
19 msg "Connecting to Bazaar server...."
21 if [ -d $_bzrmod ] ; then
22 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
23 msg "The local files are updated."
24 else
25 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
28 msg "Bazaar checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_bzrmod-build"
32 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
33 cd "$srcdir/$_bzrmod-build"
35 # fix default ip command
36 sed -i 's|/bin/ip|/usr/sbin/ip|' source/TunnelManager/Controller.py
39 package() {
40 cd "$srcdir/$_bzrmod-build/source/"
41 python2 setup.py install --root="$pkgdir/" --optimize=1
42