summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49fc7af602987d9fb0256e7c2051e1a5505dc4eb (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
# Maintainer: Josef Miegl <josef@miegl.cz>
# Contributor: Gaetan Bisson <bisson@archlinux.org
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: codyps <archlinux@codyps.com>
# Contributor: drygdryg <drygdryg2014 [at] yandex [dot] com>

pkgname=aircrack-ng-clang-git
pkgver=20210204.17f971ce
pkgrel=1
pkgdesc="Wi-Fi security auditing tools suite (built with Clang for brute force speedup)"
url="https://aircrack-ng.org"
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'pentium4')
license=('GPL2')
makedepends=('git' 'python' 'clang')
depends=('gcc-libs' 'libnl' 'openssl' 'sqlite' 'hwloc' 'pcre' 'libpcap' 'iw' 'net-tools' 'ethtool')
optdepends=('python: dump-join, airgraph-ng, versuck-ng, airdrop-ng')
provides=('aircrack-ng' 'aircrack-ng-scripts')
conflicts=('aircrack-ng-git' 'aircrack-ng' 'aircrack-ng-scripts')
replaces=('aircrack-ng-svn' 'aircrack-ng-scripts')
source=("git+https://github.com/aircrack-ng/aircrack-ng.git")
sha256sums=('SKIP')

pkgver() {
  cd "aircrack-ng"
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

prepare() {
  cd "aircrack-ng"
  autoreconf -f -i
}

build() {
  cd "aircrack-ng"
  ./configure CC=clang CXX=clang++ --with-experimental --with-ext-scripts --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var
  make
}

check() {
  cd "aircrack-ng"
  make check
}

package() {
  cd "aircrack-ng"
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: