Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: yannsen <ynnsen@gmail.com>
- pkgname=aircrack-ng-cuda-svn
- pkgver=1550
- pkgrel=5
- pkgdesc="Wifi security suite - WEP / WPA crack tools -- supports CUDA"
- arch=('i686' 'x86_64')
- url="http://www.aircrack-ng.org"
- license=('GPL2')
- depends=('openssl' 'wireless_tools' 'autoconf' 'libtool' 'cuda>=2.2' 'sqlite3')
- makedepends=(subversion)
- provides=(aircrack-ng)
- conflicts=(aircrack-ng)
- source=()
- md5sums=()
- _svntrunk="http://trac.aircrack-ng.org/svn/branch/aircrack-ng-cuda/"
- _svnmod=aircrack-ng-cuda
- build() {
- cd $startdir/src
- msg "Connecting to SVN server...."
- if [ -d $_svnmod/.svn ]; then
- (cd $_svnmod && svn up -r $pkgver)
- else
- svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
- fi
- msg "SVN checkout done or server timeout"
- msg "Starting make..."
- if [ -d "${srcdir}/${_svnmod}-build" ]; then
- rm -rf "${srcdir}/${_svnmod}-build"
- fi
- svn export $_svnmod $_svnmod-build
- cd $_svnmod-build
- # setting the right location of nvcc
- sed -i "s/#NVCCFLAGS/NVCCFLAGS/" src/Makefile || return 1
- if test "$CARCH" == x86_64; then
- sed -i "s|lib -lcuda -lcudart|opt/cuda/lib64 -lcuda -lcudart -lstdc++|" src/Makefile || return 1
- else
- sed -i "s|lib -lcuda -lcudart|opt/cuda/lib -lcuda -lcudart -lstdc++|" src/Makefile || return 1
- fi
- sed -i s#/bin/nvcc#/opt/cuda/bin/nvcc#g src/Makefile || return 1
- sed -i "s/--compiler-options -fno-strict-aliasing --host-compilation=C/--compiler-options -fno-strict-aliasing --host-compilation=C --compiler-options -fpermissive/" src/Makefile || return 1
- # BUILD
- make prefix=/usr CUDA=true sqlite=true DESTDIR=$startdir/pkg/ install || return 1
- }
Add Comment
Please, Sign In to add comment