mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-10-18 21:34:03 +02:00
* Move remaining references to the HamRadioOnline organisation The repository moved from praktimarc/kst4contest to HamRadioOnline/kst4contest. Document the move in the German and English changelog, point manuals, README, website, AUR packaging and the version-feed tooling at the new address, and keep accepting pre-move release URLs in the update-feed validator because published feeds still carry the old owner. Personal identities (Ko-Fi account, contact e-mail) stay unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WFGQ7wkSPo21itLMHPi8Yw * Lowercase the owner in the generated Flatpak Pages URL GITHUB_REPOSITORY_OWNER is now the mixed-case HamRadioOnline, and the next build would write that spelling into the published flatpakrepo and flatpakref files. Hostnames are case-insensitive, but the published metadata should match the documented lowercase address. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WFGQ7wkSPo21itLMHPi8Yw * Build the Flatpak against org.freedesktop.Platform 25.08 Runtime branch 24.08 is end-of-life and no longer receives security updates, so every flatpak update now prints an EOL warning. 25.08 is the current supported branch on Flathub. The app bundles its own Java runtime, so the platform bump only changes the base libraries. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WFGQ7wkSPo21itLMHPi8Yw --------- Co-authored-by: Claude <noreply@anthropic.com>
73 lines
2.5 KiB
Bash
73 lines
2.5 KiB
Bash
# Maintainer: Philipp Wagner <philipp@wagnersnetz.de>
|
|
pkgname=kst4contest-git
|
|
pkgver=1.50.0.r356.ge0c1c6b6
|
|
pkgrel=1
|
|
pkgdesc="ON4KST Chat Client for VHF/UHF contest operation (git)"
|
|
arch=('x86_64')
|
|
url="https://github.com/HamRadioOnline/kst4contest"
|
|
license=('GPL-3.0-only')
|
|
depends=('gst-plugins-base' 'gst-plugins-good')
|
|
makedepends=('java-environment=21' 'git')
|
|
provides=('kst4contest')
|
|
conflicts=('kst4contest' 'kst4contest-bin')
|
|
source=("kst4contest::git+https://github.com/HamRadioOnline/kst4contest.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/kst4contest"
|
|
BASE=$(grep -m1 '^version=' gradle.properties \
|
|
| cut -d= -f2 | sed 's/[-.]nightly//')
|
|
printf '%s.r%s.g%s' "${BASE}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/kst4contest"
|
|
|
|
export JAVA_HOME=$(find /usr/lib/jvm -maxdepth 1 -name 'java-21-*' -type d | head -n 1)
|
|
export PATH="${JAVA_HOME}/bin:${PATH}"
|
|
|
|
# A Gradle home inside $srcdir keeps the build independent of whatever the
|
|
# builder's ~/.gradle happens to hold: with --offline against the personal
|
|
# cache, every dependency added since the last local build broke the package.
|
|
export GRADLE_USER_HOME="${srcdir}/gradle-home"
|
|
|
|
./gradlew --no-daemon -S :app-desktop:createDistributable
|
|
|
|
# package() reads dist/KST4Contest. Application name, icon and the JDK
|
|
# module list come from app-desktop/build.gradle.kts.
|
|
rm -rf dist
|
|
mkdir -p dist
|
|
cp -a app-desktop/build/compose/binaries/main/app/KST4Contest dist/
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/kst4contest"
|
|
|
|
install -dm755 "${pkgdir}/usr/lib/KST4Contest"
|
|
cp -a dist/KST4Contest/. "${pkgdir}/usr/lib/KST4Contest/"
|
|
|
|
install -dm755 "${pkgdir}/usr/bin"
|
|
printf '#!/bin/sh\nexec /usr/lib/KST4Contest/bin/KST4Contest "$@"\n' \
|
|
> "${pkgdir}/usr/bin/KST4Contest"
|
|
chmod 755 "${pkgdir}/usr/bin/KST4Contest"
|
|
|
|
install -dm755 "${pkgdir}/usr/share/applications"
|
|
cat > "${pkgdir}/usr/share/applications/KST4Contest.desktop" << 'EOF'
|
|
[Desktop Entry]
|
|
Type=Application
|
|
Name=KST4Contest
|
|
Comment=ON4KST Chat Client for VHF/UHF contest operation
|
|
Exec=KST4Contest
|
|
Icon=KST4Contest
|
|
Categories=Network;HamRadio;
|
|
Terminal=false
|
|
EOF
|
|
|
|
if [[ -f "${pkgdir}/usr/lib/KST4Contest/lib/KST4Contest.png" ]]; then
|
|
install -Dm644 "${pkgdir}/usr/lib/KST4Contest/lib/KST4Contest.png" \
|
|
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/KST4Contest.png"
|
|
fi
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|