new file: projects/ivarch.com/pv/package.yml

This commit is contained in:
Andrii Riabchenko 2024-01-21 16:11:49 +02:00 committed by Max Howell
parent b6bf3f4027
commit a42b49daa3

View file

@ -0,0 +1,29 @@
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)