pantry/projects/crates.io/rustls-ffi/package.yml

46 lines
1 KiB
YAML
Raw Normal View History

distributable:
2023-12-06 23:11:09 +03:00
# url: https://codeload.github.com/rustls/rustls-ffi/tar.gz/refs/tags/v{{version}}
# 0.12.0 changed the tag format (possibly transiently)
url: https://codeload.github.com/rustls/rustls-ffi/tar.gz/refs/tags/{{version}}
strip-components: 1
versions:
github: rustls/rustls-ffi/tags
strip: /v/
build:
dependencies:
2023-12-06 23:16:10 +03:00
rust-lang.org: ^1.65
rust-lang.org/cargo: '*'
script: |
cargo install cbindgen
make DESTDIR={{prefix}}
make DESTDIR={{prefix}} install
test:
dependencies:
curl.se: '*'
env:
ARGS:
- -lrustls
linux:
ARGS:
- -Wl,--gc-sections
- -lpthread
- -ldl
darwin:
ARGS:
- -Wl,-dead_strip
- -framework Security
- -framework Foundation
TESTFILES:
- client.c
- common.c
- common.h
script: |
for file in $TESTFILES; do
curl -O https://raw.githubusercontent.com/rustls/rustls-ffi/v{{ version }}/tests/$file
done
cc client.c common.c -o client $ARGS
2023-12-06 23:11:09 +03:00
CA_FILE=$SSL_CERT_FILE ./client tea.xyz 443 /