# Contributor: Jonas <spameier+alpine@proton.me>
# Maintainer: Jonas <spameier+alpine@proton.me>
pkgname=masky
pkgver=0.2.0
pkgrel=2
pkgdesc="Python library with CLI allowing to remotely dump domain user credentials via an ADCS"
url="https://github.com/Z4kSec/Masky"
arch="noarch"
license="MIT"
depends="
	py3-asn1
	py3-asn1crypto
	py3-colorama
	py3-cryptography
	py3-impacket
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Z4kSec/Masky/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/Masky-$pkgver"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
1de63dd2d01af8bb9762aadd5bf215cf87bc45edee91e2a99534d234344e849050476a1fbe61caf7786ceb5b2b7e040f8b9f3cd1d9416193f7b022ac856bb013  masky-0.2.0.tar.gz
"
