From a0ac2ba6948149efdaa35f304c14f3a0bec66021 Mon Sep 17 00:00:00 2001 From: Vladimirs Nordholm Date: Sat, 25 Mar 2023 01:09:00 +0100 Subject: [PATCH] +tldr.sh (#851) * feat: add +tldr.sh * test fix prefix * add curl as build dep * update test hopefully it will work * show output, test * ensure compiler flags are send on linux * bash script quoting, still not working properly * make curl runtime dep --- projects/tldr.sh/package.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/tldr.sh/package.yml diff --git a/projects/tldr.sh/package.yml b/projects/tldr.sh/package.yml new file mode 100644 index 00000000..9b48d5d1 --- /dev/null +++ b/projects/tldr.sh/package.yml @@ -0,0 +1,25 @@ +distributable: + url: https://github.com/tldr-pages/tldr-c-client/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: tldr-pages/tldr-c-client/releases/tags + +dependencies: + libzip.org: ^1.9.2 + curl.se: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: | + make PREFIX="{{prefix}}" CFLAGS="-ggdb -O0 -ftrapv $CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" --jobs {{ hw.concurrency }} install + +provides: + - bin/tldr + +test: | + tldr --version + tldr ls + tldr --version | grep {{ version }}