pantry/projects/openssl.org/package.yml
2022-09-01 13:49:14 -04:00

43 lines
1.1 KiB
YAML

distributable:
url: https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1q.tar.gz
strip-components: 1
versions:
- 1.1.118
# TODO
# github: openssl/openssl
# parser: version-parser.ts
provides:
- bin/openssl
- bin/c_rehash
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
perl.org: 5
curl.se: '*'
script: |
./Configure --prefix={{ prefix }} $ARCH no-tests
make --jobs {{ hw.concurrency }}
make install_sw # `_sw` avoids installing docs
#TODO needs to be a curl.se/pkg that gets updates
mkdir -p "$CERTDIR"
curl https://curl.se/ca/cacert-2022-07-19.pem -o "$CERTDIR"/cert.pem
env:
CERTDIR: ${{prefix}}/ssl
darwin/aarch64: {ARCH: 'darwin64-arm64-cc'}
darwin/x86-64: {ARCH: 'darwin64-x86_64-cc'}
linux/aarch64: {ARCH: 'linux-aarch64'}
linux/x86-64: {ARCH: 'linux-x86_64'}
test:
script: |
echo "This is a test file" > in
openssl dgst -sha256 -out out ./in
test "$(cat ./out)" = "$SAMPLE"
env:
SAMPLE: SHA256(./in)= c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35