pantry/projects/gnu.org/gawk/package.yml
Jacob Heider 44dba213e5
more hardcoded versions (#1901)
* update(aspell)

* update(pango)

* update(binutils)

* update(gawk)

* 11 more
2023-05-08 11:17:44 -04:00

31 lines
627 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/gawk/gawk-{{ version.raw }}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/gawk/
match: /gawk-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /gawk-/
- /.tar.gz/
provides:
- bin/awk
- bin/gawk
- bin/gawk-{{version}}
- bin/gawkbug
build:
dependencies:
tea.xyz/gx/make: '*'
tea.xyz/gx/cc: c99
script: |
./configure --prefix={{ prefix }}
make --jobs {{ hw.concurrency }} install
test:
make test
test:
script:
test "$(echo "Goodbye, cruel World" | gawk '{ gsub("Goodbye, cruel", "Hello,"); print }')" = "Hello, World"