1 # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
2 # Contributor: Hoàng Đức Hiếu <hdh@lazny.tang.la>
3 # Contributor: Gilfran Ribeiro <contato [at] gilfran [dot] net>
4 # Contributor: William Díaz <wdiaz [at] archlinux [dot] us>
6 pkgname=cpyrit-cuda-svn
9 pkgdesc="CUDA backend for accelerated attack against WPA-PSK authentication, development version"
10 url="http://code.google.com/p/pyrit/"
12 arch=('i686' 'x86_64')
13 depends=('pyrit-svn' 'opencl-nvidia' 'python2')
14 makedepends=('cuda-toolkit')
16 _svntrunk=http://pyrit.googlecode.com/svn/trunk/cpyrit_cuda
22 msg "Connecting to SVN server...."
24 if [ -d "${srcdir}"/"${_svnmod}" ] ; then
25 cd "${_svnmod}" && svn update
27 svn co "${_svntrunk}" "${_svnmod}"
30 [ -d "${srcdir}"/"${_svnmod}"-build ] && rm -fr "${srcdir}"/"${_svnmod}"-build
31 cp -R "${srcdir}"/"${_svnmod}" "${srcdir}"/"${_svnmod}"-build
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 cd "${srcdir}"/"${_svnmod}"-build
38 sed -e "s|'/opt/cuda'|'/opt/cuda-toolkit'|" -e "s|' --host-compilation C'||" -i setup.py
39 python2 setup.py build
43 cd "${srcdir}"/"${_svnmod}"-build
44 python2 setup.py install --root="${pkgdir}" --optimize=1