summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8e94ceafa4f0cd481421c0388a2b32258920a95 (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
# Maintainer :  Kr1ss  $(tr +- .@ <<<'<kr1ss+x-yandex+com>')


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: