# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=crackmapexec _pkgname=CrackMapExec pkgver=3.1 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/v$pkgver.tar.gz cleanup-residual-patch-in-upstream.patch" 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="619ca129dffd44baa6cf3c002f2b51e4 crackmapexec-3.1.tar.gz c8ed85f6ae45b1074ad480bd0f48423e cleanup-residual-patch-in-upstream.patch" sha256sums="794a64edf482bb5118f2c59c9410024dee3ca442fa173bd59847a01714024620 crackmapexec-3.1.tar.gz 4b01133ddedda5303e9a6b1a0784b8c2b1e9e364847deedef32a79ba0e0c8b72 cleanup-residual-patch-in-upstream.patch" sha512sums="e1c56eb8bcef7da1ebfae5277eb86069229d5b7595a660a36efa7e83bf79121dd2b2f2762ed3aa4d03d17ab7c2485f0636362d32db6898dace1e628780788fff crackmapexec-3.1.tar.gz 13659484d5dd13c4324c3c89d4a6833db950db70a748cc1b74fbcac0bae3eda19d2f22dec732dbc20e9a0132c721027ee7ec1e1b9c1589231f3a963f3fb8190f cleanup-residual-patch-in-upstream.patch"