+wavpack.com

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-07-03 15:00:35 +03:00
parent 6e760c41f3
commit 42283e2f5c
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C

View file

@ -0,0 +1,33 @@
distributable:
url: https://www.wavpack.com/wavpack-{{version}}.tar.xz
strip-components: 1
display-name: wavpack.com
versions:
github: dbry/WavPack/tags
build:
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
provides:
- bin/wavpack
- bin/wvunpack
- bin/wvtag
- bin/wvgain
test:
# Testing lossless encoding and decoding on random file
script: |
dd if=/dev/zero of=test.raw bs=4 count=22050
dd if=/dev/urandom bs=4 count=22050 >> test.raw
dd if=/dev/zero bs=4 count=22050 >> test.raw
wavpack --raw-pcm=44100,16s,2,le -y test.raw
wvunpack test.wv -o out.raw -r -y
cmp -s test.raw out.raw
rm test.raw out.raw test.wv