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

pkgname=python-smbcrawler-git
pkgver=r27.6020f9f
pkgrel=1
pkgdesc="Crawler for smb shares for the search of credentials."
arch=('any')
url="https://github.com/SySS-Research/smbcrawler"
license=('MIT')
depends=('python' 
         'impacket' 
         'python-libnmap' 
         'python-lxml'
         'python-magic' 
         'python-pdftotext' )
makedepends=('git' 
             'python-build'
             'python-installer'
             'python-wheel'
             'python-setuptools'
             # 'python-pytest'
             # 'python-pexpect' 
             ) 
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('python-smbcrawler::git+https://github.com/SySS-Research/smbcrawler.git')
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

# Ignoring tests, because they do not work
# check() {
#     cd "$srcdir/${pkgname%-git}"
#     pytest
# }

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