pantry/projects/github.com/sctplab/usrsctp/package.yml
Andrii Riabchenko fea60a18b6 new file: projects/github.com/sctplab/usrsctp/package.yml
new file:   projects/github.com/sctplab/usrsctp/test.c
2023-11-12 12:32:46 -05:00

32 lines
745 B
YAML

distributable:
url: https://github.com/sctplab/usrsctp/archive/refs/tags/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: sctplab/usrsctp
build:
dependencies:
cmake.org: '*'
linux:
gnu.org/gcc: '*'
script:
- cmake -S . -B build $CMAKE_ARGS
- cmake --build build
- cmake --install build
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
- -Dsctp_build_shared_lib=ON
test:
dependencies:
linux:
gnu.org/gcc: '*'
script:
- cc test.c -lusrsctp -lpthread -o test
- ./test