# Maintainer: fordprefect _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" }