1 # Contributor: Jens Pranaitis <jens@chaox.net>
5 pkgdesc="script to simplify the use of aircrack-ng tools"
7 url="http://code.google.com/p/airoscript/"
9 depends=("bash" "gettext" "perl" "aircrack-ng-svn" "screen" "pptpclient")
10 makedepends=('subversion')
11 source=("airoscript-conf.patch")
12 md5sums=('3f9d1bfb65560ab1af08ee0bac8cecbc')
13 _svntrunk=http://trac.aircrack-ng.org/svn/branch/airoscript/
18 if [ -d $_svnmod/.svn ]; then
19 (cd $_svnmod && svn up -r $pkgver)
21 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23 msg "SVN checkout done or server timeout"
24 msg "Starting make..."
25 rm -rf "$srcdir/$_svnmod-build"
26 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
27 cd "$srcdir/$_svnmod-build"
28 #some things needs path fix
30 patch -Np0 -i "$srcdir"/airoscript-conf.patch || return 1
32 #we must fix paths in Makefiles, /usr/local is too bad, this dir must be banned
33 sed -i "s|/usr/local|$pkgdir/usr|" Makefile || return 1
34 sed -i 's|$(prefix)/etc|$(prefix)/../etc|' Makefile-Linux || return 1
36 mkdir -p $pkgdir/usr/sbin
37 make DESTDIR="$pkgdir/" install || return 1
38 # renaming screenrc or we will be in conflict hell
40 mv screenrc screenrc-airoscript
42 rm "$pkgdir"/usr/share/locale/es_ES