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

29 lines
471 B
YAML
Raw Normal View History

2022-11-29 22:42:10 +03:00
distributable:
url: https://ftp.gnu.org/gnu/patch/patch-{{version}}.tar.xz
strip-components: 1
versions:
- 2.7.6
provides:
- bin/patch
build:
dependencies:
tea.xyz/gx/make: '*'
tea.xyz/gx/cc: c99
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