Files
HamPack/compile.conf
T
David YoungandClaude Opus 5.5 cdba8b45e7 Add xara, a VARA-compatible modem, alongside VARA under Wine
- compile.conf: build xara 0.1.3 with cargo, without the "registered"
  feature; stage-install xara, xara-monitor, man pages, the user
  service (pointed at ~/.local/bin) and the CM108/AIOC PTT udev rule;
  copy the config template to ~/.config/xara/xara.conf if it's not
  there. The service isn't enabled: it needs a callsign, and shares
  port 8300 with VARA
- packages.conf: alsa-lib and libpulse; rust only when there's no cargo
  yet, since it conflicts with rustup
- hampackremove: stop and disable the xara service, keep the user's
  settings and say where they are
- README: how to set up xara and use it with Pat
- tests for the xara build, the rust/cargo check and removal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:16:08 -07:00

110 lines
5.8 KiB
Plaintext

# compile.conf - Applications to build from source and install
#
# Fields:
# version= - version string for update checking (required). Changing it
# rebuilds the app on the next update
# git= - git repository URL to clone (mutually exclusive with wget). Builds the
# tag named after the version (1.2.3 or v1.2.3), or the default branch
# if the repo has no tags
# ref= - commit to build instead of the version's tag, for repos whose tags are
# wrong or that have no tags. hampackcheck compares it with upstream HEAD
# for repos without version tags. Change version= along with it, or the
# new commit isn't built
# wget= - URL of a zip/tar archive to download and extract (mutually exclusive with git).
# For an archive with no version number, use the date it was released
# (YYYY-MM-DD, from its Last-Modified header) as version=, and
# hampackcheck checks it for you
# install= - path to the installed binary, used to detect if already installed (required)
# steps= - comma-separated build commands, run in order from a private copy of
# the source (required). A step that fails stops the build, and the
# app is tried again on the next update. Steps run unattended, so
# they mustn't ask questions. $HOME, $USER and $HAMPACK_DIR are set.
# For an app that installs many files, install to a staging
# directory and finish with `install_staged DIR` (see lib.sh): it
# copies the files into place without leaving anything owned by
# root in your home, and records them for hampackremove
# gui=true - set if a .desktop file should be installed
# desktop= - path to the .desktop file to install (required when gui=true)
[direwolf]
version=1.8.1
git=https://github.com/wb2osz/direwolf.git
install=$HOME/.local/bin/direwolf
steps=mkdir build, cd build, cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local, make -j4, make install DESTDIR=$PWD/stage, install_staged stage, sudo rm -f /etc/udev/rules.d/99-direwolf-cmedia.rules, sudo udevadm control --reload-rules, mkdir -p $HAMPACK_STATE/conf.d, cp -n $HAMPACK_DIR/conf.d/direwolf.conf $HAMPACK_STATE/conf.d/
[QtTermTCP]
version=0.81
git=https://github.com/g8bpq/QtTermTCP.git
# Upstream tags are one release behind: tag 0.81 is the 0.0.0.79 commit
ref=00ca15573c4653882265d6bfc884fca619556c30
install=$HOME/.local/bin/QtTermTCP
desktop=$HAMPACK_DIR/desktop/qttermtcp.desktop
gui=true
steps=rm -f *.o .qmake.stash Makefile, qmake-qt5, make, mv QtTermTCP $HOME/.local/bin/
[kiwix-desktop]
version=2.5.1
git=https://github.com/kiwix/kiwix-desktop.git
install=$HOME/.local/bin/kiwix-desktop
gui=true
steps=/usr/lib/qt6/bin/qmake PREFIX=$HOME/.local "QMAKE_CXXFLAGS+=-Wno-error=sfinae-incomplete", make, make install INSTALL_ROOT=$PWD/stage, install_staged stage
[kiwix-tools]
version=3.8.2
git=https://github.com/kiwix/kiwix-tools.git
install=$HOME/.local/bin/kiwix-serve
steps=meson setup build --prefix=$HOME/.local, ninja -C build, DESTDIR=$PWD/stage ninja -C build install, install_staged stage
# No tags upstream, so pinned to a commit
[Dump1090]
version=1.0.0
git=https://github.com/antirez/dump1090.git
ref=efe64db3c6ba1520291331628a33c1e208e851a6
install=$HOME/.local/bin/dump1090
steps=make, mv dump1090 $HOME/.local/bin/dump1090
# YAAC.zip always holds the latest release and carries no version number,
# so version= is the zip's release date
[yaac]
version=2026-11-07
wget=https://www.ka2ddo.org/ka2ddo/YAAC.zip
install=$HOME/.local/bin/yaac/YAAC.jar
desktop=$HAMPACK_DIR/desktop/yaac.desktop
gui=true
steps=rm -rf $HOME/.local/bin/yaac, mkdir -p $HOME/.local/bin/yaac, mv ./* $HOME/.local/bin/yaac/
[potacat]
version=1.14.1
git=https://github.com/Waffleslop/POTACAT.git
install=$HOME/.local/bin/POTACAT.AppImage
desktop=$HAMPACK_DIR/desktop/potacat.desktop
gui=true
steps=bash $HAMPACK_DIR/patch-potacat.sh, npm install, npm run dist:linux, mv dist/*.AppImage $HOME/.local/bin/POTACAT.AppImage
[js8call-improved]
name=JS8Call
version=3.0.3
git=https://github.com/JS8Call-improved/JS8Call-improved.git
install=$HOME/.local/bin/JS8Call
desktop=$HAMPACK_DIR/desktop/js8call.desktop
gui=true
steps=mkdir build, cd build, cmake -D CMAKE_INSTALL_PREFIX=/opt/JS8Call-improved .., cmake --build . -- -j 4, mv JS8Call $HOME/.local/bin/JS8Call
# update.sh installs and enables graywolf's systemd service once it's built
[graywolf]
version=0.14.14
git=https://github.com/chrissnell/graywolf.git
install=$HOME/.local/bin/graywolf
steps=make all, install -m 755 bin/graywolf $HOME/.local/bin/graywolf, install -m 755 bin/graywolf-modem $HOME/.local/bin/graywolf-modem
# VARA-compatible HF/FM modem, native on Linux; an alternative to VARA under
# Wine (both use port 8300, so run one at a time). Built without the
# "registered" feature, which unlocks paid-VARA speeds without a license.
# Installs the user service but doesn't enable it: set up
# ~/.config/xara/xara.conf first (see the README)
[xara]
version=0.1.3
git=https://github.com/x0rro/xara.git
install=$HOME/.local/bin/xara
steps=cargo build --release --locked -p xara, mkdir -p stage$HOME/.local/bin stage$HOME/.local/share/man/man1 stage$HOME/.config/systemd/user stage/etc/udev/rules.d, install -m 755 target/release/xara target/release/xara-monitor stage$HOME/.local/bin/, install -m 644 dist/man/xara.1 dist/man/xara-monitor.1 stage$HOME/.local/share/man/man1/, sed "s|/usr/bin/xara|$HOME/.local/bin/xara|" dist/systemd/xara.service > stage$HOME/.config/systemd/user/xara.service, install -m 644 dist/udev/60-xara-ptt.rules stage/etc/udev/rules.d/, install_staged stage, sudo udevadm control --reload-rules, systemctl --user daemon-reload || true, mkdir -p $HOME/.config/xara, cp -n dist/xara.conf.example $HOME/.config/xara/xara.conf