summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c367ec1e11fa2427eddedc188bd1feea24c5e323 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Maintainer: Sotirios M. Roussis (xToNouSou) <xtonousou@gmail.com>

_pkgname=airgeddon
pkgname=$_pkgname-git
pkgver=6.2
pkgrel=4
pkgdesc='This is a multi-use bash script for Linux systems to audit wireless networks'
url='https://github.com/v1s1t0r1sh3r3/airgeddon'
license=('GPL3')
source=('git://github.com/v1s1t0r1sh3r3/airgeddon.git')
depends=(
  'aircrack-ng'
  'bash>=4.2'
  'coreutils'
  'gawk'
  'iw'
  'net-tools'
  'sed'
  'wireless_tools'
  'xterm'
)
optdepends=(
  'beef'
  'bettercap'
  'bully'
  'crunch'
  'curl'
  'dhcp'
  'dsniff'
  'ethtool'
  'ettercap'
  'expect'
  'hashcat'
  'hostapd'
  'iptables'
  'lighttpd'
  'mdk3'
  'pciutils' 
  'pixiewps'
  'reaver'
  'rfkill'
  'sslstrip'
  'usbutils'
  'wget'
  'wpaclean'
  'xorg-xdpyinfo'
)
makedepends=('binutils' 'coreutils' 'git')
conflicts=('airgeddon-git')
provides=('airgeddon-git')
sha256sums=('SKIP')
arch=('any')

prepare() {
  if [ -d "$srcdir/${pkgname}" ]; then
    rm -rf "$srcdir/${pkgname}"
  fi

  mkdir -p "$srcdir/${pkgname}"
  cd "$srcdir/${pkgname}"
}

pkgver() {
  cd "${srcdir}/${_pkgname}"

  echo "   .-""""-."
  echo "  /        \\"
  echo " /_        _\\"
  echo "// \\      / \\\\"
  echo "|\\__\\    /__/|"
  echo " \\    ||    /"
  echo "  \\        /"
  echo "   \\  __  /"
  echo "    '.__.'"
  echo "     |  |"
  echo "     |  |"
  echo "${pkgver}"
}

prepare() {
  cd "$srcdir/${_pkgname}"

  sed -i 's|auto_update=1|auto_update=0|' airgeddon.sh
}

package() {
  cd "${srcdir}/${_pkgname}"

  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/airgeddon"

  install -Dm644 -t "$pkgdir/usr/share/doc/airgeddon/" README.md CHANGELOG.md
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/airgeddon/LICENSE.md"

  rm -rf *.md .git* binaries imgs Dockerfile pindb_checksum.txt

  cp -a --no-preserve=ownership * "$pkgdir/usr/share/airgeddon"

  cat > "$pkgdir/usr/bin/airgeddon" << EOF
#!/bin/sh
cd /usr/share/airgeddon
exec bash airgeddon.sh "\${@}"
EOF

  chmod a+x "$pkgdir/usr/bin/airgeddon"
}

# vim: ts=2 sw=2 et: