PKGBUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Contributor (Arch): Fabian Melters <melters [at] gmail [dot] com>
  3. # Maintainer: André Silva <emulatorman@hyperbola.info>
  4. pkgname=pyrit
  5. _pkgname=Pyrit
  6. pkgver=0.5.0
  7. pkgrel=2.parabola1
  8. pkgdesc='The famous WPA precomputed cracker, without nonfree cpyrit-cuda recommendation'
  9. url='https://github.com/JPaulMora/Pyrit'
  10. arch=('i686' 'x86_64' 'armv7h')
  11. license=('GPL3')
  12. depends=('openssl' 'python2' 'zlib' 'libpcap')
  13. optdepends=(
  14. 'cpyrit-opencl: opencl support'
  15. 'scapy: packet capture analyzation support'
  16. 'python2-sqlalchemy: storage support'
  17. )
  18. checkdepends=('python2-sqlalchemy' 'scapy')
  19. source=(${pkgname}-${pkgver}.tar.gz::https://github.com/JPaulMora/Pyrit/archive/v${pkgver}.tar.gz
  20. scapy-2.3.2.patch)
  21. sha512sums=('912742cd7d9cd9231b9b3aa155a5170c0ba36c3865280423e100c1d12df34e093ee56305d8738d4f406abbfef9b1d540872872b8ef23d699466298d41289ad25'
  22. '99d4ae2159be2d829337f3481cbb6580da1c6a2d2b6b28c7ed17348daa983859b7cd6ba3ee8575cbcba16efa27bf230bac075599b1fa0b531178dbdc45f853b2')
  23. prepare() {
  24. cd ${_pkgname}-${pkgver}
  25. patch -p1 < "${srcdir}/scapy-2.3.2.patch"
  26. }
  27. build() {
  28. cd ${_pkgname}-${pkgver}
  29. python2 setup.py build
  30. }
  31. check() {
  32. cd ${_pkgname}-${pkgver}/test
  33. local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
  34. PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
  35. python2 test_pyrit.py
  36. }
  37. package() {
  38. cd ${_pkgname}-${pkgver}
  39. python2 setup.py install -O1 --root="${pkgdir}" --skip-build
  40. install -Dm 644 README.md CHANGELOG -t "${pkgdir}/usr/share/doc/${pkgname}"
  41. }
  42. # vim: ts=2 sw=2 et: