pantry/projects/gnu.org/sed/package.yml

32 lines
650 B
YAML
Raw Normal View History

2023-03-16 01:25:37 +03:00
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!'