build_gekko.sh 812 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. export folder=$(pwd)
  3. cd ~
  4. git clone https://github.com/wareck/cgminer-gekko.git
  5. cd cgminer-gekko
  6. autoreconf -fi
  7. CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-gekko --enable-bflsc --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus --enable-klondike --enable-modminer
  8. make
  9. strip cgminer.exe
  10. cp cgminer.exe /tmp/
  11. cd /tmp/
  12. wget https://tinyurl.com/oqw7crn5 -O cgminer-gekko-win32.zip
  13. unzip cgminer-gekko-win32.zip
  14. mv cgminer.exe cgminer-gekko-win32
  15. cd /tmp/
  16. version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
  17. 7z a cgminer-gekko-$version.7z cgminer-gekko-win32
  18. echo ""
  19. echo "cgminer-gekko-$version.7z is ready in /tmp folder"
  20. echo ""