diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-11-16 20:43:49 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-11-16 20:43:49 +0000 |
| commit | 0582b0f8cd26678e741a06ba2ab42cc47a7c689a (patch) | |
| tree | 028dcc99591775e87682c0ff8259fea3a21aa538 /src/tesserae/extra/brotli.nim | |
| parent | moved core LFS tessera to core/ (diff) | |
moved non LFS tessera to extra/
Diffstat (limited to 'src/tesserae/extra/brotli.nim')
| -rw-r--r-- | src/tesserae/extra/brotli.nim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tesserae/extra/brotli.nim b/src/tesserae/extra/brotli.nim new file mode 100644 index 0000000..73e6ceb --- /dev/null +++ b/src/tesserae/extra/brotli.nim @@ -0,0 +1,29 @@ +import .. / lapis + +tessera "brotli": + source: "https://github.com/google/brotli/archive/v1.1.0/brotli-1.1.0.tar.gz" + patches: @[""] + dependencies: @[ + "cmake" + ] + build: @[ + "mkdir build", + "cd build", + """ + cmake -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_BUILD_TYPE=Release \ + .. + """, + "make", + "make install", + "cd ..", + """ + sed "/c\/.*\.[ch]'/d;\ + /include_dirs=\[/\ + i libraries=['brotlicommon','brotlidec','brotlienc']," \ + -i setup.py + """, + "pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD", + "pip3 install --no-index --find-links dist --no-user Brotli" + ] + result: "brotli" |
