summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7e2a591f045ce319e678e625c7062371c473f9c (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
58
# Maintainer: dkasak <dkasak AT termina DOT org DOT uk>
# Contributor: Sebastian Neef <aur AT gehaxelt DOT IN>
# Contributor: ocelot <amitchell AT airmail DOT cc>

pkgbase=theharvester-git
pkgname=theharvester-git
pkgver=3.2.3.r18.ga6959ad
pkgrel=1
pkgdesc="An OSINT tool for gathering emails, names, subdomains, IPs and URLs related to a target using public sources."
arch=('any')
url="https://github.com/laramies/theHarvester"
license=('GPL2')
depends=(
    'python'
    'python-aiodns'
    'python-aiohttp'
    'python-aiomultiprocess'
    'python-aiosqlite'
    'python-beautifulsoup4'
    'python-certifi'
    'python-dnspython'
    'python-netaddr'
    'python-plotly'
    'python-pyppeteer'
    'python-yaml'
    'python-requests'
    'python-retrying'
    'python-shodan'
    'python-texttable'
    'python-lxml'
    'python-uvloop'
)
makedepends=('git' 'python-setuptools' 'python-pytest')
provides=("${pkgname}")
conflicts=("${pkgname}")
install="theHarvester.install"
source=("$pkgname::git+https://github.com/laramies/theHarvester.git")
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/${pkgname}"
    python setup.py build
}

package() {
    cd "${srcdir}/${pkgname}"
    python setup.py install --root=${pkgdir} --optimize=1 --skip-build
}

check() {
    cd "${srcdir}/${pkgname}"
    pytest
}