# Description: Brotli compression library # URL: https://github.com/google/brotli # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: cmake ninja name=brotli version=1.0.9 release=2 source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz runtime-linker-path.patch) build() { # https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc patch -d $name-$version -p1 -i $SRC/runtime-linker-path.patch cmake -S $name-$version -B build -G Ninja \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib \ -D BUILD_SHARED_LIBS=True cmake --build build DESTDIR=$PKG cmake --install build cd $name-$version /usr/bin/python3 setup.py build /usr/bin/python3 setup.py install \ --prefix=/usr --root=$PKG --optimize=1 }