mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/github.com/protobuf-c/protobuf-c/package.yml
new file: projects/github.com/protobuf-c/protobuf-c/test.proto
This commit is contained in:
parent
25c2124053
commit
21b1d1bf45
2 changed files with 34 additions and 0 deletions
26
projects/github.com/protobuf-c/protobuf-c/package.yml
Normal file
26
projects/github.com/protobuf-c/protobuf-c/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/protobuf-c/protobuf-c/releases/download/v{{version}}/protobuf-c-{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: protobuf-c/protobuf-c
|
||||||
|
dependencies:
|
||||||
|
protobuf.dev: ^25.1
|
||||||
|
build:
|
||||||
|
script:
|
||||||
|
- ./configure $CONFIGURE_ARGS
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
# https://github.com/protocolbuffers/protobuf/issues/9947
|
||||||
|
CFLAGS: "$CFLAGS -DNDEBUG"
|
||||||
|
CONFIGURE_ARGS:
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --libdir="{{prefix}}/lib"
|
||||||
|
provides:
|
||||||
|
- bin/protoc-c
|
||||||
|
- bin/protoc-gen-c
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- protoc-c test.proto --c_out=.
|
||||||
|
- ls | grep test.pb-c.c
|
||||||
|
- protoc-c --version | grep {{version}}
|
8
projects/github.com/protobuf-c/protobuf-c/test.proto
Normal file
8
projects/github.com/protobuf-c/protobuf-c/test.proto
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
package test;
|
||||||
|
message TestCase {
|
||||||
|
string name = 4;
|
||||||
|
}
|
||||||
|
message Test {
|
||||||
|
repeated TestCase case = 1;
|
||||||
|
}
|
Loading…
Reference in a new issue