summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e8e1cadd7cc10e6661d2edc72ad6a980468037f (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
# Contributor: Kyle Sferrazza <kyle.sferrazza@gmail.com>
# Contriubutor: robertfoster

pkgname=wifiphisher-git
pkgver=r787.f0be783
pkgrel=3
pkgdesc='Fast automated phishing attacks against WPA networks'
arch=('any')
url='https://github.com/sophron/wifiphisher'
license=('MIT')
depends=('python'
         'python-httplib2'
         'python-scapy'
         'aircrack-ng'
         'python-pyopenssl'
         'python-pyric'
         'python-blessings'
         'python-pbkdf2'
         'python-tornado'
         'hostapd'
         'dnsmasq'
         'python-dbus'
         'python-roguehostapd-git')
makedepends=('git' 'python-setuptools')
provides=('wifiphisher')
conflicts=('wifiphisher')
source=('git+https://github.com/sophron/wifiphisher.git')
sha512sums=('SKIP')

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

build() {
    cd wifiphisher
    python setup.py build
}

package() {
    cd wifiphisher
    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
    install -Dm 644 -t "$pkgdir/usr/share/doc/wifiphisher/" *.md
    install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/wifiphisher/LICENSE"
}