diff --git a/projects/github.com/confluentinc/libserdes/package.yml b/projects/github.com/confluentinc/libserdes/package.yml new file mode 100644 index 00000000..5c46fc5d --- /dev/null +++ b/projects/github.com/confluentinc/libserdes/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/confluentinc/libserdes/archive/refs/tags/v7.5.2-rc231027084844.tar.gz + strip-components: 1 +versions: + # v7.5.2-rc231027084844 + - 7.5.2.231027084844 +dependencies: + apache.org/avro: '*' + digip.org/jansson: '*' + curl.se: '*' +build: + dependencies: + linux: + gnu.org/gcc: '*' + gnu.org/make: '*' + script: + - ./configure --prefix={{prefix}} + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install +test: + dependencies: + linux: + gnu.org/gcc: '*' + script: + - cc test.c -lserdes -o test + - ./test \ No newline at end of file diff --git a/projects/github.com/confluentinc/libserdes/test.c b/projects/github.com/confluentinc/libserdes/test.c new file mode 100644 index 00000000..664a9e1f --- /dev/null +++ b/projects/github.com/confluentinc/libserdes/test.c @@ -0,0 +1,17 @@ +#include +#include +#include +#include + +int main() +{ + char errstr[512]; + serdes_conf_t *sconf = serdes_conf_new(NULL, 0, NULL); + serdes_t *serdes = serdes_new(sconf, errstr, sizeof(errstr)); + if (serdes == NULL) + { + errx(1, "constructing serdes: %s", errstr); + } + serdes_destroy(serdes); + return 0; +} \ No newline at end of file