aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libsodium.rb
blob: 90e4e4483feb04dcb29720b9f2ee2ec7de8ebcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Libsodium < Formula
  homepage 'https://github.com/jedisct1/libsodium/'
  url 'http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.1.tar.gz'
  sha256 '65756c7832950401cc0e6ee0e99b165974244e749f40f33d465f56447bae8ce3'

  option :universal

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make check"
    system "make install"
  end
end