# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=crowbar pkgver=v4.2.r1.g4b563dc pkgrel=5 epoch=1 pkgdesc='Brute forcing tool that can be used during penetration tests.' arch=('any') groups=('blackarch' 'blackarch-cracker') url='https://github.com/galkan/crowbar' license=('MIT') depends=('python' 'python-paramiko' 'python-python-nmap' 'openvpn' 'openssh' 'freerdp' 'tigervnc') makedepends=('git' 'python-setuptools') source=("git+https://github.com/galkan/$pkgname.git") sha512sums=('SKIP') pkgver() { cd $pkgname ( set -o pipefail git describe --long --tags --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "%s.%s" "$(git rev-list --count HEAD)" \ "$(git rev-parse --short=7 HEAD)" ) } build() { cd $pkgname python setup.py build } package() { cd $pkgname python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build }