updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sipvicious-svn / PKGBUILD
blobe7087ff97dafb74cc9fc2f7462432335caca0b40
1 # Contributor: Jinx <Jinxware[at]gmail[dot]com>
3 pkgname=sipvicious-svn
4 pkgver=398
5 pkgrel=1
6 pkgdesc="Tools for auditing SIP devices"
7 arch=('i686' 'x86_64')
8 url="http://blog.sipvicious.org"
9 license=('GPLv2')
10 depends=('python2')
11 makedepends=('subversion')
12 install="post.install"
14 _svntrunk="http://sipvicious.googlecode.com/svn/trunk"
15 _svnmod="$pkgname"
17 build() {
18   cd "$srcdir"
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
26   msg "SVN checkout done or server timeout"
27   msg "Starting to build package..."
30 package() {
31         rm -rf "$srcdir/$pkgname/.svn"
32         install -d -m 755 "$pkgdir/usr/bin"
33         install -d -m 755 "$pkgdir/usr/share"
35         cd "$srcdir/$pkgname"
36         chmod 755 *.py
37         sed -i "s:/usr/bin/env python:/usr/bin/env python2:" *.py
38         mv "$srcdir/$pkgname" "$pkgdir/usr/share"