summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33051c82bd326a1bb88c4c7c4630c44fb6f71b4c (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
# Maintainer: fordprefect <fordprefect@dukun.de>
_pkgname=dnstwist
pkgname=${_pkgname}-git
pkgver=r411.74edcea
pkgrel=1
pkgdesc="simple tool to look for registered domains similar to your own, only distinguished by typos. useful for detection of fraud and fishing attacs"
url="https://github.com/elceef/dnstwist"
arch=('any')
license=('unknown')
depends=('python-dnspython' 'python-tld' 'python-geoip' 'python-whois' 'python-requests' 'python-ssdeep')
source=("git+https://github.com/elceef/dnstwist")
md5sums=('SKIP')

pkgver() {
  # idea "borrowed" from wiki
  cd "${srcdir}/${_pkgname}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}
 
package() {
    install -D "${srcdir}/${_pkgname}/dnstwist.py" "${pkgdir}/usr/bin/dnstwist.py"
  }