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

331.6. homebank-5.10.3

Personal finance manager — accounts, budgets, reports, QIF, CSV and OFX import

Version 5.10.3, release 1
Shelf office — Office suites, word processors, spreadsheets, presentations, accounting and finance, and office-format import libraries
Phase 44_apps (Applications), 315 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://www.gethomebank.org/
Build time 1.1 SBU
Installed size 4.8 MiB in 535 files
Recipe ports/core/office/homebank/kpkgbuild

About

HomeBank is a GTK 3 personal-finance program: accounts, scheduled transactions, budgets and reports over a single .xhb file. It imports bank statements as QIF, CSV and, through libofx, OFX and QFX.

Sources

Dependencies

Depends on: pkgconf, intltool, perl-xml-parser, gettext, glib, gtk3, libsoup3, libofx.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

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 homebank'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/office/homebank.

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/office/homebank
echo '9597b4f30ffa71fefe49613fabbd1513725ab21185ff327716cef6274999227d  homebank-5.10.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/homebank
SRC=$SRC_ROOT/homebank-5.10.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf homebank-5.10.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/homebank-theme-files.patch"

./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
	--disable-nls \
	--with-ofx
make
make DESTDIR=$PKG install
test -f "$PKG/usr/share/homebank/icons/Default/index.theme"
test -f "$PKG/usr/share/homebank/icons/hicolor/scalable/status/prf-transaction-transfer-symbolic.svg"

cat > "$PKG/usr/share/applications/homebank.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=HomeBank
GenericName=Personal finance
Comment=Free, easy, personal accounting for everyone
Icon=homebank
Exec=homebank %f
Terminal=false
MimeType=application/x-homebank;
Categories=Office;Finance;
Keywords=money;currency;business;finance;investment;budget;account;bank;statement;transaction;income;expense;bills;qif;csv;accounting;banking;
StartupNotify=true
StartupWMClass=fr.free.mdoyen.HomeBank
DESKTOP
chmod 644 "$PKG/usr/share/applications/homebank.desktop"

The switches, and why each is set:

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/homebank, 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 homebank-5.10.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/homebank, and runs the triggers its paths call for.

Contents

Installed programs: homebank.

Installed directories: /usr/lib/locale, /usr/share/application-registry, /usr/share/homebank, /usr/share/licenses/homebank, /usr/share/mime-info.

Notes

build.sh tests after the install that index.theme and the transfer icon are in the package, so the build fails if either of the patched files was not installed.

configure requires libsoup 3. HomeBank uses it only for the currency-rate update, which fails offline and leaves the rates as entered.

build.sh writes the desktop entry with StartupWMClass=fr.free.mdoyen.HomeBank. The window’s Wayland app id is its GApplication id, which is neither the entry’s file name nor its last component; without the key the taskbar cannot match the window to its Start menu row.