Skip to content

Instantly share code, notes, and snippets.

@Kaelten
Created January 21, 2013 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaelten/4583209 to your computer and use it in GitHub Desktop.
Save Kaelten/4583209 to your computer and use it in GitHub Desktop.
A homebrew recipie for cgminer
require 'formula'
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
url 'https://github.com/ckolivas/cgminer/archive/v2.10.4.zip'
sha1 '026e03f35f23c26417d09a3288f7933969668001'
depends_on 'automake' => :build
depends_on 'curl' => :build
depends_on 'c-ares' => :build
depends_on 'libusb' => :build
depends_on 'pkg-config' => :build
def install
ENV['NOCONFIGURE'] = '1'
system "./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--enable-cpumining"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment