ladybird/Ports/libssh2/package.sh
2023-09-09 01:06:31 +02:00

29 lines
554 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port='libssh2'
version='1.10.0'
useconfigure='true'
files=(
"https://www.libssh2.org/download/libssh2-${version}.tar.gz#2d64e90f3ded394b91d3a2e774ca203a4179f69aebee03003e5a6fa621e41d51"
)
depends=(
'openssl'
'zlib'
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DCRYPTO_BACKEND=OpenSSL'
'-DENABLE_ZLIB_COMPRESSION=ON'
'-GNinja'
)
configure() {
run cmake "${configopts[@]}" .
}
build() {
run ninja
}
install() {
run ninja install
}