2023-04-11 23:40:45 +03:00
|
|
|
distributable:
|
|
|
|
url: https://download.libsodium.org/libsodium/releases/libsodium-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://download.libsodium.org/libsodium/releases/
|
|
|
|
match: /libsodium-(\d+\.\d+(\.\d+)?)\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /libsodium-/
|
|
|
|
- /.tar.gz/
|
2023-04-11 23:40:45 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
script: |
|
|
|
|
./configure --prefix="{{prefix}}"
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
2023-09-13 20:11:07 +03:00
|
|
|
env:
|
|
|
|
linux/aarch64:
|
|
|
|
CFLAGS: "$CFLAGS -march=armv8-a+crypto"
|
2023-04-11 23:40:45 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
fixture: |
|
|
|
|
#include <assert.h>
|
|
|
|
#include <sodium.h>
|
|
|
|
int main() {
|
|
|
|
assert(sodium_init() != -1);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
script: |
|
|
|
|
mv $FIXTURE b.c
|
|
|
|
cc b.c -lsodium
|
|
|
|
./a.out
|