# Maintainer: ArchStrike <team@archstrike.org>

buildarch=220

pkgname=asleap
pkgver=2.2
pkgrel=4
groups=('archstrike' 'archstrike-crackers')
pkgdesc="Actively recover LEAP/PPTP passwords." 
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
license=(GPL)
url='http://www.willhackforsushi.com/Asleap.html'
depends=('openssl' 'libpcap')
source=(http://www.willhackforsushi.com/code/asleap/${pkgver}/asleap-${pkgver}.tgz)
sha512sums=('123d624e2c3e0f6b8d4974947044adb68a5e4e307a9b1117e866c64f0e7df7ec22570eebebedea281ba60d3f37ff21a2581867f7ff3fdd9d3ad34e315bc14836')

build() {
  cd "${srcdir}/asleap-${pkgver}" || exit
  make
}

package() {
  cd "${srcdir}/asleap-${pkgver}" || exit
  install -Dm755 asleap "${pkgdir}/usr/bin/asleap"
  install -Dm755 genkeys "${pkgdir}/usr/bin/genkeys"
}
