2023-02-07 06:07:04 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/google/brotli/archive/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: google/brotli
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '*'
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
working-directory: build.d
|
|
|
|
script: |
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
make --jobs={{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
|
|
|
|
provides:
|
2023-02-08 02:24:54 +03:00
|
|
|
- bin/brotli
|
2023-02-07 06:07:04 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
fixture:
|
|
|
|
Hello, World!
|
|
|
|
script: |
|
|
|
|
brotli $FIXTURE $FIXTURE.br
|
|
|
|
brotli $FIXTURE.br --output=out.txt --decompress
|
|
|
|
test "$(cat $FIXTURE)" = "$(cat out.txt)"
|