# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). 
# See COPYING for license details. 

pkgname=wlan2eth
pkgver=1.3
pkgrel=5
pkgdesc='Re-writes 802.11 captures into standard Ethernet frames.' 
groups=('blackarch' 'blackarch-wireless')
arch=('x86_64' 'aarch64')
url='http://www.willhackforsushi.com/?page_id=79'
license=('GPL')
depends=('libpcap')
source=("http://www.willhackforsushi.com/code/$pkgname/$pkgname-$pkgver.tgz")
sha512sums=('c55cc2490fe7eaa5e84658a557d3f60a724edcfaeed966214ba4e695a0029cdbb39cbf25a62ee371ae20407df1a03b24bb27a7be89f396c0cbc97b88107b7776')

build() {
  cd "$pkgname-$pkgver"

  sed -i "s|-g3 -ggdb -pipe|$CFLAGS|g" Makefile

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

