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

pkgname=python-wifiphisher-git
_pkgname=wifiphisher
pkgver=r787.f0be783
pkgrel=1
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' 'wifiphisher-git')
source=('git+https://github.com/sophron/wifiphisher.git')
sha512sums=('SKIP')

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

build() {
	cd "${srcdir}/${_pkgname}"
	python setup.py build
}

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