summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3627c3fc5ed3c50d3e92fa7eb9336e8a07cdddf (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
# Maintainer: Thibaud Kehler <thibaud dot kehler at gmx dot net>

pkgname=python-powerhub-git
pkgver=2.0.2.r3.g1051252
pkgrel=1
pkgdesc="A post exploitation tool for PowerShell to help transferring data and code."
arch=('any')
url="https://github.com/AdrianVollmer/PowerHub"
license=('MIT')
depends=('python' 
         'python-cheroot' 
         'python-cryptography' 
         'python-dnspython'
         'python-eventlet'
         'python-flask' 
         'python-flask-socketio' 
         'python-flask-sqlalchemy'
         'python-jinja'
         'python-requests'
         'python-magic'
         'python-pyopenssl' 
         'python-pypykatz' 
         'python-service-identity' 
         'python-twisted' 
         'python-watchdog'
         'python-werkzeug'
         'python-wsgidav')
optdepends=('mingw-w64: Cross compilation of C/C++ payloads'
            'mono: Cross compilation of C# payloads')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-setuptools-scm') 
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('python-powerhub::git+https://github.com/AdrianVollmer/PowerHub.git')
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${pkgname%-git}"
    python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/${pkgname%-git}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}