diff --git a/projects/ivarch.com/pv/package.yml b/projects/ivarch.com/pv/package.yml new file mode 100644 index 00000000..bb1acd86 --- /dev/null +++ b/projects/ivarch.com/pv/package.yml @@ -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) \ No newline at end of file