-
Notifications
You must be signed in to change notification settings - Fork 0
/
dkml-component-staging-curl.opam
75 lines (75 loc) · 2.28 KB
/
dkml-component-staging-curl.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.2.0"
synopsis: "Provides `curl` or `curl.exe` on all DKML installable platforms"
description:
"The `staging-curl` component provides `curl` or `curl.exe` on all DKML installable platforms, including Windows."
maintainer: ["[email protected]"]
authors: ["Diskuv, Inc. <[email protected]>"]
license: "Apache-2.0"
homepage: "https://github.com/diskuv/dkml-component-staging-curl"
bug-reports: "https://github.com/diskuv/dkml-component-staging-curl/issues"
depends: [
"dune" {>= "2.9"}
"dkml-component-staging-ocamlrun" {>= "4.12.1~"}
"dkml-install" {>= "0.2.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/diskuv/dkml-component-staging-curl.git"
name: "dkml-component-staging-curl"
install: [
# Windows
# -------
#
# We bundle the authoritative curl.exe so we don't have to force the end-user
# to have Windows 10 Build 17063 or later which have curl.exe pre-installed.
["install" "-d"
"%{_:share}%/staging-files/windows_x86/bin"
"%{_:share}%/staging-files/windows_x86_64/bin"]
[
"unzip"
"-o"
"-d"
"%{_:share}%/staging-files"
"dl/curl-7.81.0_1-win32-mingw.zip"
"curl-7.81.0-win32-mingw/bin/curl.exe"
"curl-7.81.0-win32-mingw/bin/curl-ca-bundle.crt"
"curl-7.81.0-win32-mingw/bin/libcurl.def"
"curl-7.81.0-win32-mingw/bin/libcurl.dll"
]
[
"sh"
"-euc"
"""
install \\
'%{_:share}%'/staging-files/curl-7.81.0-win32-mingw/bin/* \\
'%{_:share}%'/staging-files/windows_x86/bin/
install \\
'%{_:share}%'/staging-files/curl-7.81.0-win32-mingw/bin/* \\
'%{_:share}%'/staging-files/windows_x86_64/bin/
rm -rf '%{_:share}%'/staging-files/curl-7.81.0-win32-mingw
"""
]
]
extra-source "dl/curl-7.81.0_1-win32-mingw.zip" {
src: "https://curl.se/windows/dl-7.81.0_1/curl-7.81.0_1-win32-mingw.zip"
checksum: [
"sha256=4e810ae4d8d1195d0ab06e8be97e5629561497f5de2f9a497867a5b02540b576"
]
}