Skip to content

Instantly share code, notes, and snippets.

@shazow
Last active January 24, 2023 01:21
Show Gist options
  • Save shazow/c71c652409015479a7e6 to your computer and use it in GitHub Desktop.
Save shazow/c71c652409015479a7e6 to your computer and use it in GitHub Desktop.
Homebrew recipe for secp256k, put it into /usr/local/Library/Formula/secp256k1.rb or run: brew install https://gist.github.com/shazow/c71c652409015479a7e6/raw/secp256k1.rb
class Secp256k1 < Formula
desc "Optimized C library for EC operations on curve secp256k1"
homepage "https://github.com/bitcoin/secp256k1"
url "https://github.com/bitcoin/secp256k1.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--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