mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
29 lines
677 B
YAML
29 lines
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)
|