#!/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 }