argon2: add the PREFIX parameter for make

Closes #41557.

Signed-off-by: Jim Yeh <jim@bitmark.com>
Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
Jim Yeh 2019-05-21 09:13:40 +08:00 committed by Sean Molenaar
parent 2312e6ac04
commit 09b84282bb
No known key found for this signature in database
GPG key ID: 6BF5D8DF0D34FAAE

View file

@ -3,6 +3,7 @@ class Argon2 < Formula
homepage "https://github.com/P-H-C/phc-winner-argon2"
url "https://github.com/P-H-C/phc-winner-argon2/archive/20190702.tar.gz"
sha256 "daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c"
revision 1
head "https://github.com/P-H-C/phc-winner-argon2.git"
bottle do
@ -13,9 +14,9 @@ class Argon2 < Formula
end
def install
system "make"
system "make", "PREFIX=#{prefix}", "ARGON2_VERSION=#{version}"
system "make", "test"
system "make", "install", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}", "ARGON2_VERSION=#{version}"
doc.install "argon2-specs.pdf"
end