forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.sh
executable file
·38 lines (35 loc) · 883 Bytes
/
package.sh
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
#!/usr/bin/env -S bash ../.port_include.sh
port='curl'
version='8.7.1'
useconfigure='true'
files=(
"https://curl.se/download/curl-${version}.tar.bz2#05bbd2b698e9cfbab477c33aa5e99b4975501835a41b7ca6ca71de03d8849e76"
)
depends=(
'ca-certificates'
'openssl'
'zlib'
'zstd'
)
configure() {
mkdir -p curl-build
cmake \
-G Ninja \
-S "curl-${version}" \
-B curl-build \
-DCMAKE_TOOLCHAIN_FILE="${SERENITY_BUILD_DIR}/CMakeToolchain.txt" \
-DCURL_USE_OPENSSL='ON' \
-DCURL_ZSTD='ON' \
-DCURL_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt' \
-DCURL_CA_PATH='none' \
-DCURL_DISABLE_NTLM='ON' \
-DCURL_DISABLE_SOCKETPAIR='ON' \
-DCURL_DISABLE_TESTS='ON' \
-DCURL_HIDDEN_SYMBOLS='OFF'
}
build() {
ninja -C curl-build
}
install() {
ninja -C curl-build install
}