Skip to content

Instantly share code, notes, and snippets.

@Kaelten
Created January 21, 2013 02:25
Show Gist options
  • 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