mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
parent
db66ef123c
commit
eaf0bfe54e
1 changed files with 39 additions and 0 deletions
39
projects/libssh2.org/package.yml
Normal file
39
projects/libssh2.org/package.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
distributable:
|
||||
url: https://www.libssh2.org/download/libssh2-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: libssh2/libssh2
|
||||
strip: /^libssh2-/
|
||||
|
||||
dependencies:
|
||||
openssl.org: ^1.1
|
||||
zlib.net: ^1.2
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --with-openssl
|
||||
- --with-libz
|
||||
- --disable-examples-build
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
fixture: |
|
||||
#include <libssh2.h>
|
||||
int main(void) {
|
||||
libssh2_exit();
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE b.c
|
||||
cc b.c -lssh2
|
||||
./a.out
|
Loading…
Reference in a new issue