From 12882265c67215572a236b923e11e76fe0f59d69 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Sun, 20 Aug 2023 22:48:10 +0300 Subject: [PATCH] new file: projects/libpipeline.gitlab.io/libpipeline/package.yml new file: projects/libpipeline.gitlab.io/libpipeline/test.c --- .../libpipeline/package.yml | 31 +++++++++++++++++++ .../libpipeline.gitlab.io/libpipeline/test.c | 7 +++++ 2 files changed, 38 insertions(+) create mode 100644 projects/libpipeline.gitlab.io/libpipeline/package.yml create mode 100644 projects/libpipeline.gitlab.io/libpipeline/test.c diff --git a/projects/libpipeline.gitlab.io/libpipeline/package.yml b/projects/libpipeline.gitlab.io/libpipeline/package.yml new file mode 100644 index 00000000..259fd78e --- /dev/null +++ b/projects/libpipeline.gitlab.io/libpipeline/package.yml @@ -0,0 +1,31 @@ +distributable: + url: https://download.savannah.nongnu.org/releases/libpipeline/libpipeline-{{version}}.tar.gz + strip-components: 1 +display-name: libpipeline +versions: + url: https://download.savannah.nongnu.org/releases/libpipeline/ + match: /libpipeline-\d+\.\d+\.\d+\.tar\.gz/ + strip: + - /^libpipeline-/ + - /\.tar\.gz/ +build: + dependencies: + tea.xyz/gx/cc: c99 + gnu.org/make: '*' + script: + - ./configure $CONFIGURE_ARGS + - make --jobs {{hw.concurrency}} + - make --jobs {{hw.concurrency}} install + env: + CONFIGURE_ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --disable-silent-rules +test: + dependencies: + tea.xyz/gx/cc: c99 + script: + - cc test.c -lpipeline -o test + - ./test | grep "Hello world" diff --git a/projects/libpipeline.gitlab.io/libpipeline/test.c b/projects/libpipeline.gitlab.io/libpipeline/test.c new file mode 100644 index 00000000..170ea284 --- /dev/null +++ b/projects/libpipeline.gitlab.io/libpipeline/test.c @@ -0,0 +1,7 @@ +#include +int main() { + pipeline *p = pipeline_new(); + pipeline_command_args(p, "echo", "Hello world", NULL); + pipeline_command_args(p, "cat", NULL); + return pipeline_run(p); +} \ No newline at end of file