Skip to content

Instantly share code, notes, and snippets.

@dlo
Created September 7, 2015 15:44
Show Gist options
  • Save dlo/9945b2b9e5fe7b2ac901 to your computer and use it in GitHub Desktop.
Save dlo/9945b2b9e5fe7b2ac901 to your computer and use it in GitHub Desktop.
class Libu2fHost < Formula
desc "Libu2f-host provide a C library and command-line tool that implements the host-side of the U2F protocol. "
homepage "https://developers.yubico.com/libu2f-host/"
url "https://developers.yubico.com/libu2f-host/Releases/libu2f-host-1.0.0.tar.xz"
version "1.0.0"
sha256 "18c56b9b5cfea2566925bba45b25a4e20b3ef8696905d8f2a06116316e164374"
depends_on "pkg-config" => :build
depends_on "hidapi" => :build
depends_on "json-c" => :build
def install
args = ["--prefix=#{prefix}"]
system "./configure", *args
system "make", "install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment