mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
Created build for brotli
This commit is contained in:
52
build-scripts/brotli.build
Normal file
52
build-scripts/brotli.build
Normal file
@ -0,0 +1,52 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Brotli
|
||||
# Source: https://github.com/google/brotli/archive/v1.0.9/brotli-1.0.9.tar.gz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
#
|
||||
# DEPS
|
||||
# Required: Cmake
|
||||
# Recommended: NONE
|
||||
# Optional: Python2
|
||||
|
||||
patch -Np1 -i ../patches/brotli-void/Revert-Add-runtime-linker-path-to-pkg-config-files.patch &&
|
||||
sed -i 's@-R..libdir.@@' scripts/*.pc.in &&
|
||||
mkdir out &&
|
||||
cd out &&
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
..
|
||||
read -p "Compile?" && make -j2 &&
|
||||
pushd .. &&
|
||||
python3 setup.py build &&
|
||||
popd &&
|
||||
sudo -S make DESTDIR=$BUILD install &&
|
||||
|
||||
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
||||
cat > /tmp/slack-desc << "EOF"
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
brotli: brotli (Brotli compression format)
|
||||
brotli:
|
||||
brotli: Brotli is a general purpose lossless compression algorithm that
|
||||
brotli: compresses data using a combination of a modern variant of the LZ77
|
||||
brotli: algorithm, Huffman coding, and second order context modeling, with a
|
||||
brotli: compression ratio comparable to the best currently available general
|
||||
brotli: purpose compression methods. It is similar in speed with deflate but
|
||||
brotli: offers more dense compression.
|
||||
brotli:
|
||||
brotli: Homepage: https://github.com/google/brotli/
|
||||
brotli:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/brotli-1.0.9-$(uname -m)-mlfs.txz &&
|
||||
sudo -S rm -rf ${BUILD}/*
|
Reference in New Issue
Block a user