Skip to content

Instantly share code, notes, and snippets.

@premist
Last active August 13, 2021 01:29
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save premist/5344056 to your computer and use it in GitHub Desktop.
Save premist/5344056 to your computer and use it in GitHub Desktop.
Install cgminer on Mac OS X using homebrew
require 'formula'
# Original : https://raw.github.com/Kaelten/homebrew/master/Library/Formula/cgminer.rb
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
url 'https://github.com/ckolivas/cgminer/archive/v2.10.4.zip'
sha1 'cf592852b913749378db7f43a561b90c2b6448be'
depends_on 'automake' => :build
depends_on 'curl' => :build
depends_on 'c-ares' => :build
depends_on 'libusb'
depends_on 'pkg-config' => :build
def install
ENV['NOCONFIGURE'] = '1'
system "./autogen.sh"
system "./configure", "--enable-scrypt", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment