mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 08:40:50 +03:00
49 lines
1.4 KiB
YAML
49 lines
1.4 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: '*' # to download ca-certs on linux
|
||
script: |
|
||
./Configure --prefix={{ prefix }} $ARCH no-tests
|
||
make --jobs {{ hw.concurrency }}
|
||
make install_sw # `_sw` avoids installing docs
|
||
|
||
if test {{hw.platform}} = darwin; then
|
||
# use Apple’s certs ∵ they are very incentivized to get this right
|
||
rm -f "$CERTDIR" # for building over the top FIXME DESTDIR for all
|
||
ln -sf /etc/ssl "$CERTDIR"
|
||
else
|
||
#FIXME needs to be a curl.se/ca-certs that gets updates
|
||
mkdir -p "$CERTDIR"
|
||
curl https://curl.se/ca/cacert-2022-07-19.pem -o "$CERTDIR"/cert.pem
|
||
fi
|
||
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
|