From 5a4c5dcf66c5acf97e54bf89d613ef7672d4e2c7 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 13 Apr 2023 07:47:22 -0400 Subject: [PATCH] +curl.se/trurl --- projects/curl.se/trurl/package.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/curl.se/trurl/package.yml diff --git a/projects/curl.se/trurl/package.yml b/projects/curl.se/trurl/package.yml new file mode 100644 index 00000000..abe76f2b --- /dev/null +++ b/projects/curl.se/trurl/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/curl/trurl/archive/refs/tags/trurl-{{version.raw}}.tar.gz + strip-components: 1 + +versions: + github: curl/trurl + strip: /trurl-/ + +dependencies: + curl.se: ^7,^8 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + openssl.org: ^1.1 + script: | + make + mkdir -p {{prefix}}/bin + mv trurl {{prefix}}/bin + +provides: + - bin/trurl + +test: | + a="$(trurl --url "https://example.com?name=hello" --append query=search=string)" + test "$a" = "https://example.com/?name=hello&search=string"