mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
4a9b3d9cd3
* +argon2 * -fPIC on linux/x86-64 * wrong failure platform * OPTTARGET * now linux is having issues? --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
36 lines
921 B
YAML
36 lines
921 B
YAML
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'
|