pantry/projects/gnu.org/sed/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

31 lines
553 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/sed/sed-{{version.raw}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/sed/
match: /sed-(\d+\.\d+(\.\d+)?)\.tar\.gz/
strip:
- /sed-/
- /.tar.gz/
build:
dependencies:
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
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!'