mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
30 lines
557 B
YAML
30 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
|