mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
47 lines
1.1 KiB
YAML
47 lines
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}}
|