From 8e302a12ada684072246a3ede7dcf42f30db94ac Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Wed, 6 Sep 2023 21:01:38 +0300 Subject: [PATCH] sourceforge.net/projects/libtirpc (#3187) * new file: projects/sourceforge.net/projects/libtirpc/package.yml new file: projects/sourceforge.net/projects/libtirpc/test.c * fix header paths, package name * include libc * non libc test --------- Co-authored-by: Jacob Heider --- projects/sourceforge.net/libtirpc/package.yml | 35 +++++++++++++++++++ projects/sourceforge.net/libtirpc/test.c | 9 +++++ 2 files changed, 44 insertions(+) create mode 100644 projects/sourceforge.net/libtirpc/package.yml create mode 100644 projects/sourceforge.net/libtirpc/test.c diff --git a/projects/sourceforge.net/libtirpc/package.yml b/projects/sourceforge.net/libtirpc/package.yml new file mode 100644 index 00000000..e6c4b54c --- /dev/null +++ b/projects/sourceforge.net/libtirpc/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://downloads.sourceforge.net/project/libtirpc/libtirpc/{{version}}/libtirpc-{{version}}.tar.bz2 + strip-components: 1 +versions: + url: https://sourceforge.net/projects/libtirpc/files/libtirpc/ + match: /libtirpc\/\d+\.\d+\.\d+/ + strip: + - /^libtirpc\// +platforms: + - linux +dependencies: + kerberos.org: '*' +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} install + - run: | + mv tirpc/* . + rmdir tirpc + ln -s . tirpc + working-directory: ${{prefix}}/include + env: + ARGS: + - --disable-dependency-tracking + - --disable-silent-rules + - --prefix={{prefix}} +test: + dependencies: + tea.xyz/gx/cc: c99 + script: + - cc test.c -ltirpc -o test + - ./test diff --git a/projects/sourceforge.net/libtirpc/test.c b/projects/sourceforge.net/libtirpc/test.c new file mode 100644 index 00000000..7f1af132 --- /dev/null +++ b/projects/sourceforge.net/libtirpc/test.c @@ -0,0 +1,9 @@ +// Thanks, ChatGPT! +#include +#include + +int main() { + printf("If you see this, the program has linked correctly.\n"); + svc_run(); + return 0; +}