updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / pyrit-svn / PKGBUILD
blobb2efeebe8bf0f38eb5078a9ad525a74b04e4e61c
1 # contributor: Hoàng Đức Hiếu <hdh@lazny.tang.la>
2 # Contributor: Gilfran Ribeiro <contato [at] gilfran [dot] net>
3 # Contributor: William Díaz <wdiaz [at] archlinux [dot] us>
4 # Maintainer: Gustavo Alvarez <sl1pkn07 [at] gmail [dot] com>
6 pkgname=pyrit-svn
7 pkgver=308
8 pkgrel=4
9 pkgdesc="GPU-accelerated attack against WPA-PSK authentication, development version"
10 url="http://code.google.com/p/pyrit/"
11 license=('GPL3')
12 arch=('i686' 'x86_64')
13 depends=('python2' 'libpcap')
14 optdepends=('cpyrit-calpp-svn: CAL++ backend'
15             'cpyrit-cuda-svn: CUDA backend'
16             'cpyrit-opencl-svn: OpenCL backend')
18 _svntrunk=http://pyrit.googlecode.com/svn/trunk/pyrit
19 _svnmod=pyrit
21 build() {
22   cd "${srcdir}"
24   msg "Connecting to SVN server...."
26   if [ -d "${srcdir}"/"${_svnmod}" ] ; then
27       cd "${_svnmod}" && svn update
28   else
29       svn co "${_svntrunk}" "${_svnmod}"
30   fi
32   [ -d "${srcdir}"/"${_svnmod}"-build ] && rm -fr "${srcdir}"/"${_svnmod}"-build
33   cp -R "${srcdir}"/"${_svnmod}" "${srcdir}"/"${_svnmod}"-build
35   msg "SVN checkout done or server timeout"
36   msg "Starting make..."
38   cd  "${srcdir}"/"${_svnmod}"-build
40   python2 setup.py build
43 package() {
44   cd "${srcdir}"/"${_svnmod}"-build
45   python2 setup.py  install --root="${pkgdir}" --optimize=1