summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d2ef7f4b0528c635a0dfe3f318f766d3c92b775 (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=roguehostapd
pkgname=python-${_pkgname}-git
pkgver=r78.381b373
pkgrel=3
pkgdesc="Hostapd fork including Wi-Fi attacks and providing Python bindings with ctypes"
arch=('x86_64')
url="https://github.com/wifiphisher/roguehostapd"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("git+https://github.com/wifiphisher/${_pkgname}.git")
sha256sums=('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
    rm -r "${pkgdir}/usr/lib/python3.10/site-packages/examples/"
    install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}