mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 18:45:19 +03:00
34 lines
698 B
YAML
34 lines
698 B
YAML
distributable:
|
|
url: https://download.libsodium.org/libsodium/releases/libsodium-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://download.libsodium.org/libsodium/releases/
|
|
match: /libsodium-(\d+\.\d+(\.\d+)?)\.tar\.gz/
|
|
strip:
|
|
- /libsodium-/
|
|
- /.tar.gz/
|
|
|
|
build:
|
|
dependencies:
|
|
script: |
|
|
./configure --prefix="{{prefix}}"
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
linux/aarch64:
|
|
CFLAGS: "$CFLAGS -march=armv8-a+crypto"
|
|
|
|
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
|