summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eef34e664eadc42ca4a94a6a827f2b9430d073f2 (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
# Maintainer Paul Sajna <sajattack@gmail.com>

pkgname='fern-wifi-cracker'
pkgver='2.6'
pkgrel=1
groups=('blackarch' 'blackarch-cracker' 'blackarch-wireless')
pkgdesc='WEP, WPA wifi cracker for wireless penetration testing'
arch=('any')
url='https://github.com/savio-code/fern-wifi-cracker'
license=('GPL2')
depends=('python2' 'python2-pyqt4' 'aircrack-ng' 'xterm' 'subversion' 'scapy'
         'macchanger' 'gksu')
makedepends=('unzip')
replaces=('fern-wifi-cracker-git')
conflicts=('fern-wifi-cracker-git')
source=("https://github.com/savio-code/fern-wifi-cracker/archive/2.6.zip")
sha1sums=('SKIP')

prepare() {
  unzip $pkgver.zip
  cd "$srcdir/$pkgname-$pkgver/Fern-Wifi-Cracker"
}

package() {
  cd "$srcdir/$pkgname-$pkgver/Fern-Wifi-Cracker"

  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/fern-wifi-cracker/Settings"

  cp -a --no-preserve=ownership * "$pkgdir/usr/share/fern-wifi-cracker"

  cat > "$pkgdir/usr/bin/fern" << EOF
#!/bin/sh
cd /usr/share/fern-wifi-cracker
exec python2 ./execute.py "\$@"
EOF

  chmod +x "$pkgdir/usr/bin/fern"
}