Skip to content

Instantly share code, notes, and snippets.

@acidtib
Last active December 17, 2015 03:19
Show Gist options
  • Select an option

  • Save acidtib/5542493 to your computer and use it in GitHub Desktop.

Select an option

Save acidtib/5542493 to your computer and use it in GitHub Desktop.
Homebrew formula for cgminer brew install GIST_RAW_URL
require 'formula'
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
url 'https://github.com/ckolivas/cgminer/archive/v3.1.0.tar.gz'
sha1 '745465a0626b5c398aa1a675f533445e79a3cef4'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'coreutils' => :build
depends_on 'curl'
depends_on 'jansson'
depends_on 'libusb'
def install
inreplace "autogen.sh", "readlink", "greadlink"
system "./autogen.sh", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"PKG_CONFIG_PATH=/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig",
"--enable-bflsc"
system "make", "install"
end
test do
system "cgminer"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment