mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
Build openssl-1.1.1s
This commit is contained in:
parent
91b6040a88
commit
ce35600221
|
@ -3,14 +3,15 @@
|
|||
# on linux we grab the curl certs (usually these are package as ca-certificates)
|
||||
|
||||
distributable:
|
||||
url: https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1q.tar.gz
|
||||
url: https://www.openssl.org/source/openssl-{{version.raw}}.tar.gz
|
||||
sha: ${{url}}.sha256
|
||||
sig: ${{url}}.asc
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
- 1.1.118
|
||||
# TODO
|
||||
- 1.1.1s
|
||||
# github: openssl/openssl
|
||||
# parser: version-parser.ts
|
||||
# transform: /^OpenSSL_(\d+)_(\d+)_(\d+\w)$/$1.$2.$3/
|
||||
|
||||
provides:
|
||||
- bin/openssl
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
import SemVer, * as semver from "semver"
|
||||
import { panic } from "utils"
|
||||
|
||||
export default function parse(input: string): SemVer {
|
||||
if (input.startsWith('openssl-')) {
|
||||
return semver.coerce(input) ?? panic()
|
||||
} else {
|
||||
const [major, minor, patch, letter] = /OpenSSL_(\d+)_(\d+)_(\d+)(\w)/.exec(input)!
|
||||
const letter_number = letter.toLowerCase().charCodeAt(0) - 96
|
||||
const revised_patch = 100 * parseInt(patch) + letter_number
|
||||
if (Number.isNaN(revised_patch)) throw new Error()
|
||||
const v = `${major}.${minor}.${revised_patch}`
|
||||
return new SemVer(v)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue