summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: daeef97b4eb65b51c9c8faf9c9103a8f8ae15230 (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
56
57
58
59
60
61
62
63
64
65
# Maintainer: Zack Didcott

pkgname=wifipumpkin3-git
_pkgname=wifipumpkin3
pkgver=1.1.7.r2.g344a475
pkgrel=1
pkgdesc="Powerful framework for rogue access point attack"
depends=(
    'hostapd'
    'iw'
    'python-netifaces'
    'python-dhcplib-git'
    'python-tabulate'
    'python-urwid'
    'python-termcolor'
    'python-twisted'
    'python-service-identity'
    'python-pyqt5'
    'python-pyqt5-sip'
    'python-pyopenssl'
    'python-dnslib'
    'python-loguru'
    'python-scapy'
    'python-isc-dhcp-leases'
    'python-dnspython'
    'python-flask'
    'python-requests'
    'python-beautifulsoup4'
    'python-pyjwt'
    'python-flask-restful'
    'python-aiofile'
    'python-ping3'
)
makedepends=('git' 'python-setuptools')
provides=("wifipumpkin3")
conflicts=("wifipumpkin3")
arch=('i686' 'x86_64')
url="https://github.com/P0cL4bs/wifipumpkin3"
license=('Apache-2.0')
source=("git+https://github.com/P0cL4bs/wifipumpkin3.git")
sha256sums=('SKIP')

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

prepare() {
    git -C "${srcdir}/${_pkgname}" clean -dfx
}

build() {
    cd "$_pkgname"
    python3 setup.py build
}

package() {
    cd "$_pkgname"
    python3 setup.py install --root="$pkgdir" --optimize=1
}

check() {
    cd "$srcdir/$_pkgname"
    python3 -m unittest
}