updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cpyrit-calpp-svn / PKGBUILD
blob5835f516fb8deecd8db29ef544153daa30e0db5a
1 # Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
2 pkgname=cpyrit-calpp-svn
3 pkgver=308
4 pkgrel=4
5 pkgdesc="CAL++ backend for accelerated attack against WPA-PSK authentication, development version"
6 url="http://code.google.com/p/pyrit/"
7 license=('GPL3')
8 arch=('i686' 'x86_64')
9 depends=('python2' 'catalyst-utils' 'pyrit-svn')
10 makedepends=('calpp' 'boost')
11 conflicts=('cpyrit-opencl-svn')
13 _svntrunk='http://pyrit.googlecode.com/svn/trunk'
14 _svnmod='cpyrit_calpp'
15 _caldir='/usr/include/CAL/'
17 build() {
18   svn co "${_svntrunk}/${_svnmod}"
20   cd "${_svnmod}"
22   sed -i "s|VERSION = '0.4.0-dev'|VERSION = '0.4.1-dev'|" setup.py
23   sed -i "s|CALPP_INC_DIRS = \[\]|CALPP_INC_DIRS = \[\'${_caldir}\'\]|" setup.py
24   LDFLAGS="" python2 setup.py build
27 package() {
28   cd "${srcdir}/${_svnmod}"
29   python2 setup.py install --root="${pkgdir}" --optimize=1