pantry/projects/ivarch.com/pv/package.yml
2024-01-22 07:09:06 -05:00

29 lines
No EOL
677 B
YAML

distributable:
url: https://www.ivarch.com/programs/sources/pv-{{version}}.tar.gz
strip-components: 1
versions:
url: https://www.ivarch.com/programs/pv.shtml
match: /pv-(\d+(?:\.\d+)+)\.tar\.gz/
strip:
- /^pv-/
- /\.tar\.gz$/
build:
script:
- ./configure $ARGS
- make --jobs {{hw.concurrency}} install
env:
ARGS:
- --prefix={{prefix}}
- --mandir={{prefix}}/share/man
- --disable-nls
CFLAGS: -Wno-implicit-function-declaration $CFLAGS
provides:
- bin/pv
test:
- pv --version | grep {{version}}
- input_data="Some example data for pv testing."
- echo "$input_data" | pv -p -e -s $(echo -n "$input_data" | wc -c)