- `kareer --db <path>` works for the GUI and every subcommand, before or after the subcommand name, and creates the file if missing. main() strips it from argv before CLI/GUI routing; every parser declares it so it shows in --help. - Path precedence: --db > KAREER_DB_PATH > the location chosen in the GUI (kareerrc [Database] Path, read at startup for GUI and CLI alike) > $XDG_DATA_HOME/kareer/kareer.sqlite. - First GUI run (nothing forced, no file yet, or the configured file has gone missing): DatabaseSetupDialog offers the default location, a folder of the user's choice, or an existing database used in place. Until then JobsDatabase opens nothing. - Preferences gains a Database section: Move to... (copies, leaves the original), Open Existing..., Use Default Location. Refuses foreign SQLite files and unwritable ones. - Models call JobsDatabase::reopenIfPathChanged() on refresh, so switching databases needs no restart. - Link KF6::ConfigCore; add a QuickDialogs2 configure-time guard; add kconfig to the Arch dependencies and a note to the Flatpak manifest. - README documents --db, the precedence, and the first-run choice, and gains Fedora 44 build dependencies; CONTRIBUTING gets a dev recipe. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BxDf7HqD1xPnsZP8wt3NTk
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# SPDX-FileCopyrightText: 2026 ToServeTheKing <[email protected]>
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# Maintainer: Austin Bennett <austin at thebennett dot net>
|
|
pkgname=kareer
|
|
pkgver=0.1.3
|
|
pkgrel=1
|
|
pkgdesc="Job application tracker with a Sankey pipeline view and a scriptable CLI (Kirigami)"
|
|
arch=('x86_64')
|
|
url="https://github.com/toservetheking/Kareer"
|
|
license=('GPL-3.0-or-later')
|
|
depends=(
|
|
hicolor-icon-theme
|
|
kcolorscheme
|
|
kconfig
|
|
kcoreaddons
|
|
kcrash
|
|
ki18n
|
|
kiconthemes
|
|
kirigami
|
|
kirigami-addons
|
|
qqc2-desktop-style
|
|
qt6-base
|
|
qt6-declarative
|
|
)
|
|
makedepends=(
|
|
cmake
|
|
extra-cmake-modules
|
|
)
|
|
checkdepends=(appstream)
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
|
sha256sums=('7c30d4ebf2375d151e5132a57ce5b51ae7772d78a798ffa62a640114d8ff1486')
|
|
|
|
build() {
|
|
cmake -B build -S "Kareer-$pkgver" \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_TESTING=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
QT_QPA_PLATFORM=offscreen ctest --test-dir build --output-on-failure
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|