summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40cfc4ca05b9b957f060cc5db20f5e5a8f485c54 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Matthew Sexton <matthew@asylumtech.com>
# Contributor: lsf <lsf@lsf>
pkgname=wifite-git
_pkgname=${pkgname%-git}
pkgver=r729.dccebcdde
pkgrel=2
pkgdesc="A tool to attack multiple WEP and WPA encrypted networks at the same time"
arch=(any)
url="https://github.com/kimocoder/wifite2"
license=('GPL2')
depends=('python' 'python-chardet' 'aircrack-ng' 'iproute2' 'iw')
optdepends=(
  'wireshark-cli: detecting WPS networks and inspecting handshake capture files'
  'reaver: WPS Pixie-Dust & brute-force attacks'
  'bully: WPS Pixie-Dust & brute-force attacks'
  'cowpatty: detect WPA handshakes'
  'pyrit: detect WPA handshakes'
  'macchanger: change MAC for attacks'
  'hashcat: cracking PMKID hashes'
  'john: cracking PMKID hashes'
  'hcxdumptool: capturing PMKID hashes'
  'hcxtools: converting PMKID packet captures into hashcat format'
)
makedepends=( 'git' 
              'python-pytest' 
              'python-setuptools'
              'python-poetry')
checkdepends=('cowpatty')
source=(${pkgname}::git+${url}.git)
sha256sums=('SKIP')
provides=("${_pkgname}2")
conflicts=("${_pkgname}2")

pkgver() {
  cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${pkgname}"
  sed 's|sbin|bin|g' -i setup.cfg
}


build() {
  cd "${pkgname}"
  python setup.py build

}

package() {
  cd "${pkgname}"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}