2023-03-08 23:50:27 +03:00
|
|
|
distributable:
|
2023-04-17 19:00:46 +03:00
|
|
|
url: https://www.libssh.org/files/{{ version.major }}.{{ version.minor }}/libssh-{{ version }}.tar.xz
|
2023-03-08 23:50:27 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://git.libssh.org/projects/libssh.git/refs/tags
|
|
|
|
match: /libssh-\d+\.\d+\.\d+\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /libssh-/
|
|
|
|
- /.tar.gz/
|
2023-03-08 23:50:27 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
openssl.org: ^1.1
|
2023-04-17 19:00:46 +03:00
|
|
|
zlib.net: ^1
|
2023-03-08 23:50:27 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
tea.xyz/gx/cc: '*'
|
|
|
|
cmake.org: ^3
|
|
|
|
working-directory: build
|
|
|
|
script: |
|
|
|
|
cmake .. $ARGS
|
|
|
|
make install
|
|
|
|
mv src/libssh.a {{ prefix }}/lib
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DBUILD_STATIC_LIB=ON
|
|
|
|
- -DWITH_SYMBOL_VERSIONING=OFF
|
2023-04-17 19:00:46 +03:00
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
2023-03-08 23:50:27 +03:00
|
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: '*'
|
|
|
|
script: |
|
|
|
|
mv $FIXTURE test.c
|
|
|
|
gcc test.c -lssh -o test
|
|
|
|
./test
|
|
|
|
fixture: |
|
|
|
|
#include <libssh/libssh.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
ssh_session my_ssh_session = ssh_new();
|
|
|
|
if (my_ssh_session == NULL)
|
|
|
|
exit(-1);
|
|
|
|
ssh_free(my_ssh_session);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|