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

pkgname='fern-wifi-cracker-git'
pkgver=3.4.r0.g76c64b3
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=('python-pyqt5' 'aircrack-ng' 'scapy'
         'macchanger')
makedepends=('git')
conflicts=('fern-wifi-cracker')
provides=('fern-wifi-cracker')
source=("git+https://github.com/savio-code/fern-wifi-cracker.git" "fern")
sha1sums=('SKIP' 'bac416f19d84d8604c9890fedc30aefcf4f18b95')

pkgver() {
	cd "$srcdir/fern-wifi-cracker"
	git describe --long  --tags| sed 's/v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	install -D fern -t "$pkgdir/usr/bin/"
	cd fern-wifi-cracker/Fern-Wifi-Cracker
	install -d "$pkgdir/usr/share/fern-wifi-cracker/"
	cp -a --no-preserve=ownership * "$pkgdir/usr/share/fern-wifi-cracker/"
	python -O -m compileall "$pkgdir/"
}