2018-04-02 15:06:55 +10:00
|
|
|
# Description: Brotli compression library
|
|
|
|
# URL: https://github.com/google/brotli
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-08-31 19:38:18 +10:00
|
|
|
# Depends on: cmake ninja
|
2018-04-02 15:06:55 +10:00
|
|
|
|
|
|
|
name=brotli
|
2020-08-31 19:38:18 +10:00
|
|
|
version=1.0.9
|
2021-05-02 00:03:21 +10:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz
|
|
|
|
runtime-linker-path.patch)
|
2018-04-02 15:06:55 +10:00
|
|
|
|
|
|
|
build() {
|
2021-05-02 00:03:21 +10:00
|
|
|
# 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
|
2018-04-02 15:06:55 +10:00
|
|
|
|
2020-08-31 19:38:18 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2021-05-02 00:03:21 +10:00
|
|
|
|
|
|
|
cd $name-$version
|
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2018-04-02 15:06:55 +10:00
|
|
|
}
|