342.2. js8call-3.0.3
Weak-signal keyboard-to-keyboard and store-and-forward messaging for HF amateur radio
| Version | 3.0.3, release 1 |
| Shelf | hamradio — Amateur-radio operation: rig control, digital modes, logging, packet and APRS, propagation, and mesh radio |
| Phase | 44_apps (Applications), 244 of 422 in build order |
| Licence | GPL-3.0-or-later |
| Homepage | https://github.com/JS8Call-improved/JS8Call-improved |
| Build time | 4.8 SBU |
| Installed size | 16.7 MiB in 6 files |
| Recipe | ports/core/hamradio/js8call/kpkgbuild |
About
JS8Call is weak-signal keyboard-to-keyboard messaging for HF amateur radio: a conversational mode built on the FT8 modulation, with directed messages, store-and-forward relays and a heartbeat network. This port builds the JS8Call-improved continuation against Qt 6, and it keys the radio through hamlib.
Sources
js8call-3.0.3.tar.gz(13.2 MiB)
sha25634385006bb026c387afeaafcb714315b76a35f2beb38e5ae104a85d6961e21a3
upstream: https://github.com/JS8Call-improved/JS8Call-improved/archive/refs/tags/v3.0.3.tar.gz
archive copy: sources-3/hamradio--js8call-3.0.3.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, boost, fftw, hamlib, qt6-qtbase, qt6-qtwayland, qt6-qtmultimedia, qt6-qtserialport, librsvg.
Required by: no port names it.
Patches
build.sh applies these; kpkg applies nothing by itself.
no-update-check.patch— InJS8_UI/Configuration.cpp, make theCheckForUpdatessetting default to false. JS8Call otherwise asks GitHub for a newer release at every start; the check box on the settings page still turns it on.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install js8call'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/hamradio/js8call.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/hamradio/js8call
echo '34385006bb026c387afeaafcb714315b76a35f2beb38e5ae104a85d6961e21a3 js8call-3.0.3.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/js8call
SRC=$SRC_ROOT/js8call-3.0.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf js8call-3.0.3.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/no-update-check.patch"
cmake -B build -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_POLICY_DEFAULT_CMP0167=NEW \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DGIT_EXECUTABLE=GIT_EXECUTABLE-NOTFOUND \
-Wno-dev
ninja -C build
install -Dm755 build/JS8Call "$PKG/usr/bin/js8call"
install -Dm644 icons/Unix/js8call_icon.png \
"$PKG/usr/share/icons/hicolor/128x128/apps/js8call.png"
for s in 48 64; do
install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
rsvg-convert -w $s -h $s artwork/icon_128.svg \
-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/js8call.png"
done
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/js8call.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=JS8Call
GenericName=Weak-Signal Messaging
Comment=Keyboard-to-keyboard and store-and-forward messaging over HF with the JS8 mode
Exec=js8call
Icon=js8call
Terminal=false
StartupWMClass=js8call
Categories=Network;HamRadio;
Keywords=ham;radio;js8;ft8;weak;signal;hf;messaging;
DESKTOP
chmod 644 "$PKG/usr/share/applications/js8call.desktop"
The switches, and why each is set:
-DCMAKE_POLICY_DEFAULT_CMP0167=NEW— Find Boost through theBoostConfig.cmakefile that boost installs, instead of CMake’s own FindBoost module, which policy CMP0167 retires. The top-levelCMakeLists.txt, the only one the build reads, already sets this policy to NEW whenever the running CMake knows it, so the preset repeats what the project asks for.-DGIT_EXECUTABLE=GIT_EXECUTABLE-NOTFOUND— Preset the cache entry thatfind_program(GIT_EXECUTABLE git)fills to a not-found value. The preset does not hide agitthat is onPATH:find_programsearches again for a variable whose value ends in-NOTFOUND. With no git found, the configure sets the build’s revision string tonogit; with git found, it runsgit rev-parse --short HEADin the source directory, which fails because the release archive has no.git, and the revision string is left empty.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/js8call, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf js8call-3.0.3-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/js8call, and runs the triggers its paths call for.
Contents
Installed programs: js8call.
Installed directories: /usr/share/licenses/js8call.
Notes
Upstream’s CMake has no install rules (the changelog and copyright rules in resources/debian belong to a directory the top-level CMakeLists.txt never adds), so build.sh runs no install step: it installs the JS8Call binary by hand as lower-case js8call, the icon PNG, two icon sizes rasterised from the SVG artwork, and a desktop entry. Qt’s Wayland app id is the executable’s name when no organisation domain or desktop file name is set, so the entry’s StartupWMClass is js8call.