Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

90.20. snappy-1.3.1

Google's fast compressor and decompressor, trading ratio for speed

1.3.1-1 · BSD-3-Clause · 0.5 SBU · 129.2 KiB, 13 files · 41_system, 75 of 1047 · ports/core/archiver/snappy

Homepage: https://github.com/google/snappy

Depends on: cmake, ninja.

Required by (1): wireshark.

Sources: snappy-1.3.1.tar.gz (1.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install snappy'

build.sh:

cmake -S . -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG -frtti" \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DSNAPPY_BUILD_TESTS=OFF \
	-DSNAPPY_BUILD_BENCHMARKS=OFF \
	-DSNAPPY_INSTALL=ON
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libsnappy.so.

Directories: /usr/lib/cmake/Snappy, /usr/share/licenses/snappy.