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

158.6. diamond-2.2.8

Protein and translated-DNA sequence aligner, a faster BLASTP/BLASTX

2.2.8-1 · GPL-3.0-or-later · 7.0 SBU · 14.8 MiB, 2 files · 41_system, 214 of 1047 · ports/core/bioscience/diamond

Homepage: https://github.com/bbuchfink/diamond

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/bioscience.txt:

BLASTP/BLASTX at a thousand times the speed, which is the difference between a search that runs on this machine and one that does not.

Depends on: cmake, zlib, zstd, sqlite.

Required by: no port names it.

Sources: diamond-2.2.8.tar.gz (16.0 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 diamond'

build.sh:

mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DWITH_ZSTD=ON -DWITH_AVX512=ON \
	-DSQLite3_LIBRARY=/usr/lib/libsqlite3.so
make
make DESTDIR=$PKG install

readelf -d "$PKG/usr/bin/diamond" | grep -q 'NEEDED.*\[libsqlite3\.so\.0\]'

Programs: diamond.

Directories: /usr/share/licenses/diamond.