package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
941 B
19 lines
941 B
package("ca-certificates") |
|
|
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://mkcert.org/") |
|
set_description("Mozilla’s carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts.") |
|
|
|
add_urls("https://github.com/xmake-mirror/xmake-cacert/archive/refs/tags/$(version).zip") |
|
add_versions("20211118", "5d8b1f11d5c746d5af425063ba1f4acee4b18c681e7df2050f1b81cef079c227") |
|
add_versions("20220604", "a56ded4677055bbf05d94c32bddd76b22a134cab764e1ed8da8e3c080ca80ca6") |
|
|
|
on_install(function (package) |
|
os.cp("cacert.pem", package:installdir()) |
|
package:addenv("SSL_CERT_DIR", package:installdir()) |
|
package:addenv("SSL_CERT_FILE", path.join(package:installdir(), "cacert.pem")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(os.isfile(path.join(package:installdir(), "cacert.pem"))) |
|
end)
|
|
|