pantry/projects/libsodium.org/package.yml
Max Howell 567177d56b +libsodium
Closes #235
2023-04-11 17:01:45 -04:00

29 lines
557 B
YAML

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