summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e99c582c811364d092d573998935cccc5448e72 (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
52
53
54
55
56
57
# Maintainer: éclairevoyant

pkgname=theharvester-git
pkgver=4.2.0.r307.gcaf21cb
pkgrel=1
pkgdesc="Gather emails, names, subdomains, IPs and URLs related to targets using public sources"
arch=(any)
url="https://github.com/laramies/theHarvester"
license=(GPL2)
depends=(
	python-aiodns
	python-aiofiles
	python-aiohttp
	python-aiomultiprocess
	python-aiosqlite
	python-beautifulsoup4
	python-censys
	python-certifi
	python-dnspython
	python-fastapi
	python-lxml
	python-netaddr
	python-ujson
	python-pyppeteer
	python-yaml
	python-requests
	python-retrying
	python-shodan
	uvicorn
	python-uvloop
)
makedepends=(git python-{build,installer,wheel} python-setuptools)
checkdepends=(python-pytest)
install="theHarvester.install"
source=("$pkgname::git+$url.git")
b2sums=('SKIP')

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

build() {
	cd $pkgname
	python -m build -wn
}

check() {
	cd $pkgname
	export PYTHONPATH="$PWD/build/lib"
	python -m unittest discover
}

package() {
	cd $pkgname
	python -m installer -d "$pkgdir" dist/*.whl
}