pantry/projects/code.videolan.org/rist/librist/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

38 lines
919 B
YAML

distributable:
url: https://code.videolan.org/rist/librist/-/archive/v{{version}}/librist-v{{version}}.tar.gz
strip-components: 1
versions:
gitlab: code.videolan.org:rist/librist
build:
dependencies:
mesonbuild.com: '>=0.47<1'
ninja-build.org: 1
working-directory:
build
script:
# POSIX compliance issue between the code and the environment
- run: |
if test "{{hw.platform}}" = "darwin"; then
sed -i.bak -e 's/generation = (buf\.st_mtim\.tv_sec << 32).*/generation = buf.st_mtime << 32;/' srp_shared.c
rm srp_shared.c.bak
fi
working-directory: ../tools
if: ^0.2.8
- meson .. --prefix={{prefix}} --libdir={{prefix}}/lib --buildtype=release
- ninja -v
- ninja install
env:
CC: clang
test:
script: |
ristsrppasswd test test
provides:
- bin/rist2rist
- bin/ristreceiver
- bin/ristsender
- bin/ristsrppasswd