7689f421fd
fixed as https://git.libssh.org/projects/libssh.git/commit/?id=17aec429f539517468446191e3da91df40e352d1 Signed-off-by: nanake <nanake@users.noreply.github.com>
36 lines
856 B
Bash
Executable file
36 lines
856 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://git.libssh.org/projects/libssh.git"
|
|
SCRIPT_COMMIT="e5af9524e325eb534528df4964e84037ed2f8b2d"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libssh
|
|
cd libssh
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DWITH_EXAMPLES=OFF -DWITH_SERVER=OFF \
|
|
-DWITH_SFTP=ON -DWITH_ZLIB=ON ..
|
|
|
|
ninja -j$(nproc)
|
|
ninja install
|
|
|
|
{
|
|
echo "Requires.private: libssl libcrypto zlib"
|
|
echo "Cflags.private: -DLIBSSH_STATIC"
|
|
} >> "$FFBUILD_PREFIX"/lib/pkgconfig/libssh.pc
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libssh
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libssh
|
|
}
|