Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 25th, 2011  |  syntax: Bash  |  size: 1.33 KB  |  hits: 472  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: yannsen <ynnsen@gmail.com>
  2. pkgname=aircrack-ng-cuda
  3. pkgver=1550
  4. pkgrel=5
  5. pkgdesc="Wifi security suite - WEP / WPA crack tools -- supports CUDA"
  6. arch=('i686' 'x86_64')
  7. url="http://www.aircrack-ng.org"
  8. license=('GPL2')
  9. depends=('openssl' 'wireless_tools' 'autoconf' 'libtool' 'cuda>=2.2' 'sqlite3')
  10. makedepends=(subversion)
  11. provides=(aircrack-ng)
  12. conflicts=(aircrack-ng)
  13. source=()
  14. md5sums=()
  15.  
  16. _svntrunk="http://trac.aircrack-ng.org/svn/branch/aircrack-ng-cuda/"
  17. _svnmod=aircrack-ng-cuda
  18.  
  19. build() {
  20.   cd $startdir/src
  21.   msg "Connecting to SVN server...."
  22.   if [ -d $_svnmod/.svn ]; then
  23.     (cd $_svnmod && svn up -r $pkgver)
  24.   else
  25.     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  26.   fi
  27.  
  28.   msg "SVN checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   if [ -d "${srcdir}/${_svnmod}-build" ]; then
  32.     rm -rf "${srcdir}/${_svnmod}-build"
  33.   fi
  34.  
  35.   svn export $_svnmod $_svnmod-build
  36.   cd $_svnmod-build
  37.  
  38.   # setting the right location of nvcc
  39.   sed -i s#/bin/nvcc#/usr/bin/nvcc#g src/Makefile || return 1
  40.   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
  41.  
  42.   # BUILD
  43.   make prefix=/usr CUDA=true sqlite=true DESTDIR=$startdir/pkg/ install  || return 1
  44. }