osquery-1/tools/provision/formula/popt.rb
2016-09-13 10:10:05 -07:00

25 lines
800 B
Ruby

require File.expand_path("../Abstract/abstract-osquery-formula", __FILE__)
class Popt < AbstractOsqueryFormula
desc "Library like getopt(3) with a number of enhancements"
homepage "http://rpm5.org"
url "http://rpm5.org/files/popt/popt-1.16.tar.gz"
sha256 "e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8"
revision 1
bottle do
root_url "https://osquery-packages.s3.amazonaws.com/bottles"
cellar :any_skip_relocation
sha256 "17e701881a808c8b5de4fcce727a101addaa07db2a673accb1387c7def606fb9" => :x86_64_linux
end
option :universal
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end