mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
31 lines
695 B
YAML
31 lines
695 B
YAML
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: |
|
|
# Makefile is not very flexible, so we have to edit it
|
|
sed -i.bak -e "s/^\(CFLAGS = .*\)\$/\1 $CFLAGS/" Makefile
|
|
rm Makefile.bak
|
|
|
|
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"
|