blob: e5e525b5dd33330dfd73bbbdae1b146ff8f44af7 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Leonid Lednev <leonidledn at gmail dot com>
_name=masky
pkgname="python-$_name-git"
pkgver=0.2.1.r39.d0e16e9
pkgrel=1
pkgdesc="Python library with CLI allowing to remotely dump domain user credentials via an ADCS without dumping the LSASS process memory"
arch=(any)
url="https://github.com/Z4kSec/$_name"
license=('MIT')
provides=("python-$_name")
conflicts=("python-$_name")
depends=(
'python>=3.9'
'python-colorama'
'impacket'
'python-cryptography>=3.5'
'python-pyasn1'
'python-asn1crypto'
)
makedepends=(
'python-build'
'python-wheel'
'python-installer'
'python-setuptools'
'git'
)
source=("git+$url")
b2sums=('SKIP')
prepare() {
git -C "$_name" clean -dfx
}
pkgver() {
cd "$_name"
_tag="$(grep '^\s*version' setup.py | awk -F\" '{print $2}')"
printf "%s.r%s.%s" "$_tag" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$_name"
python -m build -wnx
}
package() {
cd "$_name"
python -m installer -d "$pkgdir/" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: ts=2 sw=2 et:
|