pantry/projects/curl.se/trurl/package.yml

30 lines
647 B
YAML
Raw Normal View History

2023-04-13 14:47:22 +03:00
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:
openssl.org: ^1.1
script: |
2023-04-26 22:21:21 +03:00
# Makefile is not very flexible, so we have to edit it
sed -i.bak -e "s/^\(CFLAGS = .*\)\$/\1 $CFLAGS/" Makefile
rm Makefile.bak
2023-04-13 14:47:22 +03:00
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"