# Maintainer: ArchStrike <team@archstrike.org>

buildarch=220

pkgname=vbrute-git
pkgver=r1.11dda8b
pkgrel=3
pkgdesc="Virtual hosts brute forcer. Specify file containing domains and file containing IPs and will attempt to connect to IP with specific domain."
url="https://github.com/nccgroup/vbrute"
arch=('armv6h' 'armv7h' 'i686' 'x86_64' 'aarch64')
license=('GPL3')
groups=('archstrike')
depends=('libevent')
makedepends=('git')
source=(vbrute-git::git+https://github.com/nccgroup/vbrute.git)
sha512sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname}" || exit
  autoreconf
  ./configure --prefix=/usr
}

package() {
  cd "${srcdir}/${pkgname}" || exit
  make DESTDIR="${pkgdir}" install
}
