Advertisement
Guest User

Untitled

a guest
Dec 7th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
  3.  
  4. pkgname=oclhashcat
  5. _pkgname=oclHashcat
  6. pkgver=2.01
  7. pkgrel=1
  8. pkgdesc="Worlds fastest password cracker with dictionary mutation engine (for AMD)"
  9. url=('https://hashcat.net/oclhashcat')
  10. arch=('i686' 'x86_64')
  11. license=('custom')
  12. depends=('catalyst-utils>=14.9' 'opencl-catalyst>=14.9')
  13. replaces=('oclhashcat-amd')
  14. conflicts=('oclhashcat-amd')
  15. options=('!strip')
  16. source=(https://hashcat.net/files/${_pkgname}-${pkgver}.7z)
  17. sha512sums=('068f900aad1fbed9cbb767d1fdff5a41f98c60c3805c13121fe803e2aa461a8411f4904b5f1716a3dc82b9db4b08258a69a07d3f8aac087ad28b43cc2319e0e1')
  18.  
  19. package() {
  20. cd ${_pkgname}-${pkgver}
  21. find . \( -name "*.cmd" -o -name "*.exe" \) -print | xargs -i rm {}
  22. install -d "${pkgdir}/opt" "${pkgdir}/usr/bin"
  23. if [ "${CARCH}" = "x86_64" ]; then
  24. rm ${_pkgname}32.bin
  25. mv ${_pkgname}64.bin ${_pkgname}
  26. else
  27. rm ${_pkgname}64.bin
  28. mv ${_pkgname}32.bin ${_pkgname}
  29. fi
  30. echo -e "#!/bin/sh\n/opt/${_pkgname}/${_pkgname} \$@" > "${pkgdir}/usr/bin/${_pkgname}"
  31. chmod +x ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
  32. chmod -R +r .
  33. cp -r . "${pkgdir}/opt/${_pkgname}"
  34. }
  35.  
  36. # vim: ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement