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

31 lines
536 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/patch/patch-{{version}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/patch/
match: /patch-(\d+\.\d+(\.\d+)?)\.tar\.gz/
strip:
- /patch-/
- /.tar.gz/
provides:
- bin/patch
build:
dependencies:
script: |
./configure --prefix={{prefix}}
make --jobs {{ hw.concurrency }} install
test:
script: |
echo hello > file
cat $FIXTURE | patch ./file
test "$(cat file)" = goodbye
fixture: |
1c1
< hello
---
> goodbye