+libsodium

Closes #235
This commit is contained in:
Max Howell 2023-04-11 16:40:45 -04:00
parent 6ce93a8849
commit 567177d56b

View file

@ -0,0 +1,29 @@
distributable:
url: https://download.libsodium.org/libsodium/releases/libsodium-{{version}}.tar.gz
strip-components: 1
versions:
- 1.0.18
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix="{{prefix}}"
make --jobs {{ hw.concurrency }} install
test:
dependencies:
tea.xyz/gx/cc: c99
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