mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+brotli (#181)
* +brotli * +c99 --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
65666ea1a7
commit
cf6e7089d1
1 changed files with 28 additions and 0 deletions
28
projects/github.com/google/brotli/package.yml
Normal file
28
projects/github.com/google/brotli/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
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:
|
||||
bin/brotli
|
||||
|
||||
test:
|
||||
fixture:
|
||||
Hello, World!
|
||||
script: |
|
||||
brotli $FIXTURE $FIXTURE.br
|
||||
brotli $FIXTURE.br --output=out.txt --decompress
|
||||
test "$(cat $FIXTURE)" = "$(cat out.txt)"
|
Loading…
Reference in a new issue