blob: d4edf685adf82d32189e7f57a7c9dabb52a15683 (
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: coldBug <coldbug@e.mail.de>
pkgname=python-bloodhound-ce-git
_pkgname=bloodhound
pkgver=1.7.2.093be56
pkgrel=1
pkgdesc="Python based ingestor for BloodHoundCE, based on Impacket"
arch=('any')
url="https://github.com/dirkjanm/BloodHound.py"
license=('MIT')
groups=()
depends=('python' 'impacket' 'python-ldap3' 'python-dnspython' 'python-future' 'python-pyasn1')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
conflicts=('python-bloodhound')
source=("$pkgname::git+$url#branch=bloodhound-ce")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
version=$(grep -oP "version='\K[0-9]+\.[0-9]+\.[0-9]+(?=')" setup.py)
commit=$(git rev-parse --short HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
printf "%s.%s" $version "$commit"
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|