summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94b6330d82d0ee74616fdd1e3dc8d380289db9c9 (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
# Maintainer: Hao Long <aur@esd.cc>

pkgname=wafw00f-git
pkgver=2.1.0.r2.g74b8c75
pkgrel=2
pkgdesc="The Web Application Firewall Fingerprinting Tool"
arch=("any")
url="https://github.com/EnableSecurity/wafw00f"
license=('BSD')
provides=('wafw00f')
conflicts=('wafw00f')
depends=("python-pluginbase"
         "python-requests")
makedepends=('python-setuptools' 'git')
source=("$pkgname::git+https://github.com/EnableSecurity/wafw00f.git")
sha256sums=('SKIP')

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

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

package() {
  cd $pkgname
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}