pantry/projects/libsodium.org/package.yml

30 lines
557 B
YAML
Raw Normal View History

2023-04-11 23:40:45 +03:00
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