mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
+argon2 (#1881)
* +argon2 * -fPIC on linux/x86-64 * wrong failure platform * OPTTARGET * now linux is having issues? --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
d918da94e5
commit
4a9b3d9cd3
1 changed files with 36 additions and 0 deletions
36
projects/github.com/P-H-C/phc-winner-argon2/package.yml
Normal file
36
projects/github.com/P-H-C/phc-winner-argon2/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
distributable:
|
||||
url: https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/{{version.raw}}.tar.gz
|
||||
|
||||
versions:
|
||||
github: P-H-C/phc-winner-argon2
|
||||
|
||||
provides:
|
||||
- bin/argon2
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
working-directory: phc-winner-argon2-{{version.raw}}
|
||||
script: |
|
||||
make $ARGS
|
||||
make test
|
||||
make install $ARGS
|
||||
|
||||
mkdir -p {{prefix}}/share/doc/argon2
|
||||
mv argon2-specs.pdf {{prefix}}/share/doc/argon2/
|
||||
env:
|
||||
ARGS:
|
||||
- PREFIX={{prefix}}
|
||||
- ARGON2_VERSION={{version}}
|
||||
- LIBRARY_REL=lib
|
||||
x86-64:
|
||||
# Builds with a newer instruction set on our builder than the test container uses
|
||||
ARGS:
|
||||
- OPTTARGET=core2
|
||||
|
||||
|
||||
test: |
|
||||
printf '%s' 'password' | argon2 somesalt -t 2 -m 16 -p 4
|
||||
output=$(printf '%s' 'password' | argon2 somesalt -t 2 -m 16 -p 4)
|
||||
echo "$output" | grep 'c29tZXNhbHQ$IMit9qkFULCMA/ViizL57cnTLOa5DiVM9eMwpAvPw'
|
Loading…
Reference in a new issue