# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=crackmapexec _pkgname=CrackMapExec pkgver=3.1.2 pkgrel=0 pkgdesc="A swiss army knife for pentesting Windows/Active Directory environments" url="https://github.com/byt3bl33d3r/CrackMapExec" arch="noarch" license="custom" depends="python2 py-asn1 py-impacket py-netaddr py2-crypto py-openssl py-msgpack py-requests py2-termcolor py-gevent" makedepends="python2-dev py-setuptools" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/byt3bl33d3r/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 install -Dm0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } md5sums="72336e3ca80c7b8afc015b62793393bf crackmapexec-3.1.2.tar.gz" sha256sums="6086be5181a95da25d29a803561e9a9cd7b9b3044de77563fafe1e6232d1289e crackmapexec-3.1.2.tar.gz" sha512sums="692cec66abcce057f08a63a9613a0b1df16dae6908328b41a51de7c670abde4e21afb6ae739edb3dbe2eda12779322af94963656f90cea3fadadbc04b3cd9574 crackmapexec-3.1.2.tar.gz"