# Maintainer : Kr1ss $(tr +- .@ <<<'') pkgname=blackeye-git epoch=1 pkgver() { git -C "${pkgname%-git}" describe --tags | sed 's/^v//;s/-/.r/;s/-g/./'; } pkgver=1.0.0.r11.ffa01cc pkgrel=1 pkgdesc='The most complete phishing tool - 38 website templates, updated version with ngrok' arch=('x86_64') url="https://github.com/Blackeye2/${pkgname%-git}" license=('GPL3') makedepends=('git') depends=('php') optdepends=('ngrok: if not installed, the binary will be downloaded into the user cache' 'wget: used to download the ngrok binary if none is found') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git+$url.git" "${pkgname%-git}.patch" "${pkgname%-git}.patch.sig") sha256sums=('SKIP' '168871a8a133db6f74e06c1815f47562187df700d8e7eb065cfd941bf8a3b9c6' 'SKIP') validpgpkeys=('7A194E3F7A8F867BEA8A5339023F078862ACFE50') prepare() { cd "${pkgname%-git}" patch -Np1 <"../${pkgname%-git}.patch" # clean up rm -f sites/*/saved.{ip,usernames}.txt } package() { cd "${pkgname%-git}" install -Dm755 "${pkgname%-git}.sh" -t"$pkgdir/usr/share/${pkgname%-git}/" cp -a --no-preserve=o sites "$pkgdir/usr/share/${pkgname%-git}/" install -Dm644 README.md -t"$pkgdir/usr/share/doc/${pkgname%-git}/" install -Dm755 /dev/stdin "$pkgdir/usr/bin/${pkgname%-git}" <<-EOF #!/bin/sh cp -sufr /usr/share/${pkgname%-git} "\${XDG_CACHE_HOME:-\$HOME/.cache}/" cd "\${XDG_CACHE_HOME:-\$HOME/.cache}/${pkgname%-git}" ./${pkgname%-git}.sh EOF } # vim: ts=4 sw=4 et ft=PKGBUILD: