ladybird/Ports/curl/package.sh
2022-06-27 22:51:52 +01:00

30 lines
769 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=curl
version=7.84.0
useconfigure=true
files="https://curl.se/download/curl-${version}.tar.bz2 curl-${version}.tar.bz2 702fb26e73190a3bd77071aa146f507b9817cc4dfce218d2ab87f00cd3bc059d"
auth_type=sha256
depends=("ca-certificates" "openssl" "zlib" "zstd")
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
configure() {
mkdir -p curl-build
cmake -G Ninja \
-S curl-${version} \
-B curl-build \
"${configopts[@]}" \
-DCURL_USE_OPENSSL=ON \
-DCURL_ZSTD=ON \
-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
}