pantry/projects/gnu.org/sed/package.yml
Max Howell 4fbf7189c5 +gnu.org/sed
Closes #346
2023-03-15 18:35:49 -04:00

32 lines
650 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://ftp.gnu.org/gnu/sed/sed-{{version.raw}}.tar.xz
strip-components: 1
# if theres a github then we can parse the versions
versions:
- 4.9
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
# its extremely common for packages to require the above
env:
# add any environment variables here
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
provides:
- bin/sed
test:
fixture:
Hello world!
script: |
sed -i 's/world/World/g' $FIXTURE
test "$(cat $FIXTURE)" = 'Hello World!'