Skip to content

Instantly share code, notes, and snippets.

@ifnull
Last active December 17, 2015 13:29
Show Gist options
  • Save ifnull/5617951 to your computer and use it in GitHub Desktop.
Save ifnull/5617951 to your computer and use it in GitHub Desktop.
require 'formula'
class Bfgminer < Formula
url 'http://luke.dashjr.org/programs/bitcoin/files/bfgminer/3.0.2/bfgminer-3.0.2.zip'
sha1 'b7e6498761eb2d9941ee48f83138ef56f0f7e2e3'
head 'https://github.com/luke-jr/bfgminer.git', :using => :git
homepage 'https://github.com/luke-jr/bfgminer'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'yasm' => :build
depends_on 'jansson'
depends_on 'libusb'
depends_on 'pkg-config' => :build
depends_on 'curl' => :build
def install
system 'git clone git://gitorious.org/bitcoin/libblkmaker.git libblkmaker'
system './autogen.sh'
system './configure', '--enable-scrypt', '--enable-cpumining', 'PKG_CONFIG_PATH=/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig'
system 'make'
system 'false'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment