blob: fa62599ba2be01920a99e7343eeb5b59fcffd601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
pkgname=airmode-git
pkgver=20160808
pkgrel=1
pkgdesc="AirMode - WiFi cracking framework (aircrack interface)"
url="https://github.com/ParrotSec/airmode"
arch=('any')
license=('GPL2')
depends=('gksu' 'pyqt4-common' 'aircrack-ng' 'reaver' 'cowpatty' 'pyrit' 'python2')
_gitroot="https://github.com/ParrotSec/airmode.git"
_gitname="airmode"
build()
{
cd "$srcdir"
msg "Connecting to GIT server..."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
}
package()
{
cd "$srcdir/$_gitname"
cd $(ls -d *all/)
cp -r ./usr $pkgdir
rm $pkgdir/usr/share/parrot-menu/applications/parrot-airmode.desktop
sed -i 's/python /python2 /' $pkgdir/usr/bin/airmode
sed -i 's/menuexecg /gksudo /' $pkgdir/usr/share/applications/parrot-airmode.desktop
}
|