summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64af1077ba4881077421082ff167984c5a6a999a (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
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>

pkgname=mdk4
pkgver=4.1
pkgrel=2
pkgdesc="MDK is a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses"
url="https://github.com/aircrack-ng/mdk4"
arch=("x86_64")
license=('GPL2')
depends=('libpcap')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/aircrack-ng/${pkgname}/archive/${pkgver}.tar.gz)
sha512sums=('b1472458ca02bf94f8717ac70b631f994c38cb67012fc38df0b6859778790b220447e6c1b3f15558e8f203da06ffa83bd36e5f037cb704e893c3fcf329022adc')

prepare() {
  cd ${pkgname}-${pkgver}
  sed "s|/usr/local|/usr|g" -i Makefile
  sed "s|$(PREFIX)/sbin|$(PREFIX)/bin|g" -i Makefile
  sed "s|$(PREFIX)/sbin|$(PREFIX)/bin|g" -i src/Makefile
  sed "s|PREFIX:=|PREFIX=|g" -i Makefile
}

build() {
  cd ${pkgname}-${pkgver}
  CFLAGS="-fcommon" make
}
package() {
  cd ${pkgname}-${pkgver}
  CFLAGS="-fcommon" make DESTDIR="$pkgdir/" install
  install -Dm 644 docs/*.html -t "${pkgdir}/usr/share/doc/${pkgname}"
}