# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=dnstwist pkgver=20221022 pkgrel=0 pkgdesc="Domain name permutation engine" options="!check" # no testsuite url="https://dnstwist.it" arch="noarch" license="Apache-2.0" depends=" py3-dnspython py3-geoip2 py3-idna py3-requests py3-tld py3-whois python3 " makedepends="py3-setuptools" subpackages="$pkgname-dictionaries" source="$pkgname-$pkgver.tar.gz::https://github.com/elceef/dnstwist/archive/$pkgver.tar.gz" build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } dictionaries() { pkgdesc="Dictionaries for dnstwist" depends="" mkdir -p "$subpkgdir"/usr/share/dnstwist/dictionaries for dict in "$builddir"/dictionaries/*.dict; do install -Dm0644 "$dict" "$subpkgdir"/usr/share/dnstwist/dictionaries/"$(basename $dict)" done } sha512sums=" 750ec130ac0eadcf4b546ba0e927be6eaf11482e5ad64bf115d7f3f197aa13f5e4ef81cff1de12adfefaafc4c1b31d7db50f618c2969d7f31539d50e08be00e4 dnstwist-20221022.tar.gz "