pantry/projects/apache.org/avro/package.yml
Andrii Riabchenko 0371d6dd5a new file: projects/apache.org/avro/package.yml
new file:   projects/apache.org/avro/quickstop.c
2023-10-30 10:00:59 -04:00

47 lines
No EOL
1.1 KiB
YAML

distributable:
url: https://github.com/apache/avro/archive/release-{{version}}.tar.gz
strip-components: 1
versions:
github: apache/avro
strip:
- /^release-/
dependencies:
digip.org/jansson: '*'
google.github.io/snappy: '*'
tukaani.org/xz: '*'
zlib.net: '*'
build:
dependencies:
cmake.org: '*'
freedesktop.org/pkg-config: '*'
linux:
gnu.org/gcc: '*'
gnu.org/make: '*'
working-directory: lang/c
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
provides:
- bin/avroappend
- bin/avrocat
- bin/avromod
- bin/avropipe
test:
dependencies:
freedesktop.org/pkg-config: '*'
linux:
gnu.org/gcc: '*'
script:
- cc quickstop.c -o test -lavro
- ./test
- pkg-config --modversion avro-c | grep {{version}}