Prepare extra files for the PKGBUILD install #44

Open
opened 2026-10-27 15:33:34 +00:00 by Vylpes · 2 comments
Owner

Story Points: 3


Part of milestone 0.1.0 — desktop integration for the Arch vyxcalc package (PKGBUILD on release/0.1.0).

Context: The GUI already defines APP_ID / icon name com.vylpes.vyxcalc and embeds assets/icon.png (src/gui.rs). Today’s PKGBUILD only installs /usr/bin/vyxcalc and the license. #20 notes the .desktop launcher is this packaged flow’s job.

User story

AS a Linux user who installed vyxcalc from the Arch package
I WANT a desktop launcher and system-wide application icon
SO THAT I can start the calculator from my desktop environment’s app menu with correct branding.

Acceptance criteria

  1. Desktop entry in repo
    GIVEN the calculator repository
    WHEN packaging assets are reviewed
    THEN a Freedesktop .desktop file is versioned in the repo (e.g. beside PKGBUILD or under packaging/) including at minimum: Type=Application, Name, Comment, Exec=vyxcalc, Icon=com.vylpes.vyxcalc, Categories containing Calculator, and Terminal=false.

  2. Install desktop entry
    GIVEN a successful package build from the updated PKGBUILD
    WHEN the vyxcalc package is installed
    THEN the .desktop file is installed under /usr/share/applications/ as e.g. com.vylpes.vyxcalc.desktop with file mode 644.

  3. Install icon system-wide
    GIVEN assets/icon.png in the repository
    WHEN the package is installed
    THEN the icon is installed to /usr/share/icons/hicolor/128x128/apps/com.vylpes.vyxcalc.png (matching GUI ICON_NAME), file mode 644.

  4. Launcher behaviour
    GIVEN the package is installed on a GTK-based desktop
    WHEN the user launches Vyxcalc from the application menu
    THEN the GUI opens (equivalent to running vyxcalc with no subcommand — default GUI in main.rs).

  5. Launcher icon
    GIVEN the package is installed
    WHEN the app entry appears in the application menu
    THEN it shows the com.vylpes.vyxcalc icon (not a missing/generic placeholder).

  6. Existing install steps unchanged
    GIVEN the current vyxcalc package
    WHEN this change is delivered
    THEN installation of /usr/bin/vyxcalc and /usr/share/licenses/vyxcalc/LICENSE behaves as today.

  7. Production pipeline
    GIVEN the Forgejo production workflow builds the Arch package from PKGBUILD on tag
    WHEN this work is on the release branch used for builds
    THEN makepkg / the publish job still succeeds and the produced package contains the new desktop and icon files.

Subtasks

  • Add com.vylpes.vyxcalc.desktop source file
  • Update PKGBUILD package() to install the .desktop file
  • Update PKGBUILD package() to install assets/icon.png into hicolor 128x128/apps
  • Confirm Exec, Icon, binary name, and GUI ICON_NAME all align (vyxcalc / com.vylpes.vyxcalc)
  • Document post-install launcher verification in README
  • Confirm tagged production package build still succeeds

Notes

  • Original ask: .desktop for DE integration + system-wide icon install.
  • Additional hicolor sizes beyond 128x128 are optional unless product wants multi-size icons later.
Story Points: 3 --- Part of milestone **0.1.0** — desktop integration for the Arch `vyxcalc` package (`PKGBUILD` on `release/0.1.0`). **Context:** The GUI already defines `APP_ID` / icon name `com.vylpes.vyxcalc` and embeds `assets/icon.png` (`src/gui.rs`). Today’s `PKGBUILD` only installs `/usr/bin/vyxcalc` and the license. [#20](https://git.vylpes.xyz/RabbitLabs/calculator/issues/20) notes the `.desktop` launcher is this packaged flow’s job. ## User story AS a Linux user who installed `vyxcalc` from the Arch package I WANT a desktop launcher and system-wide application icon SO THAT I can start the calculator from my desktop environment’s app menu with correct branding. ## Acceptance criteria 1. **Desktop entry in repo** GIVEN the calculator repository WHEN packaging assets are reviewed THEN a Freedesktop `.desktop` file is versioned in the repo (e.g. beside `PKGBUILD` or under `packaging/`) including at minimum: `Type=Application`, `Name`, `Comment`, `Exec=vyxcalc`, `Icon=com.vylpes.vyxcalc`, `Categories` containing `Calculator`, and `Terminal=false`. 2. **Install desktop entry** GIVEN a successful package build from the updated `PKGBUILD` WHEN the `vyxcalc` package is installed THEN the `.desktop` file is installed under `/usr/share/applications/` as e.g. `com.vylpes.vyxcalc.desktop` with file mode `644`. 3. **Install icon system-wide** GIVEN `assets/icon.png` in the repository WHEN the package is installed THEN the icon is installed to `/usr/share/icons/hicolor/128x128/apps/com.vylpes.vyxcalc.png` (matching GUI `ICON_NAME`), file mode `644`. 4. **Launcher behaviour** GIVEN the package is installed on a GTK-based desktop WHEN the user launches **Vyxcalc** from the application menu THEN the GUI opens (equivalent to running `vyxcalc` with no subcommand — default GUI in `main.rs`). 5. **Launcher icon** GIVEN the package is installed WHEN the app entry appears in the application menu THEN it shows the `com.vylpes.vyxcalc` icon (not a missing/generic placeholder). 6. **Existing install steps unchanged** GIVEN the current `vyxcalc` package WHEN this change is delivered THEN installation of `/usr/bin/vyxcalc` and `/usr/share/licenses/vyxcalc/LICENSE` behaves as today. 7. **Production pipeline** GIVEN the Forgejo production workflow builds the Arch package from `PKGBUILD` on tag WHEN this work is on the release branch used for builds THEN `makepkg` / the publish job still succeeds and the produced package contains the new desktop and icon files. ## Subtasks - [ ] Add `com.vylpes.vyxcalc.desktop` source file - [ ] Update `PKGBUILD` `package()` to install the `.desktop` file - [ ] Update `PKGBUILD` `package()` to install `assets/icon.png` into hicolor `128x128/apps` - [ ] Confirm `Exec`, `Icon`, binary name, and GUI `ICON_NAME` all align (`vyxcalc` / `com.vylpes.vyxcalc`) - [ ] Document post-install launcher verification in README - [ ] Confirm tagged production package build still succeeds ## Notes - Original ask: `.desktop` for DE integration + system-wide icon install. - Additional hicolor sizes beyond `128x128` are optional unless product wants multi-size icons later.
Vylpes added this to the 0.1.0 milestone 2026-10-27 15:33:34 +00:00
Smithy-bot stopped working 2026-11-08 11:01:29 +00:00
57 seconds
Member

Estimate (Smithy-bot)

Story points: 3

Area Notes
.desktop source + PKGBUILD installs Straightforward packaging; criteria already pin paths, names, and modes
Alignment check (vyxcalc / com.vylpes.vyxcalc) Quick cross-check against existing GUI constants
README verification steps Short doc addition
Tagged production build Validate existing workflow still produces package with new files

No application logic changes; risk is low. Sizing is in line with other small packaging/docs stories on this repo.

→ Advancing to needs/tests.

## Estimate (Smithy-bot) **Story points: 3** | Area | Notes | |------|--------| | `.desktop` source + PKGBUILD installs | Straightforward packaging; criteria already pin paths, names, and modes | | Alignment check (`vyxcalc` / `com.vylpes.vyxcalc`) | Quick cross-check against existing GUI constants | | README verification steps | Short doc addition | | Tagged production build | Validate existing workflow still produces package with new files | No application logic changes; risk is low. Sizing is in line with other small packaging/docs stories on this repo. → Advancing to **needs/tests**.
Smithy-bot stopped working 2026-11-09 11:00:54 +00:00
14 seconds
Member

Planning — needs/tests → needs/approval

QA scripts mapped to the acceptance criteria in the issue body. Run after implementation on an Arch test host (or Arch container) using a package built from the updated PKGBUILD on the release branch used for tagged builds.

Preconditions

  • Branch includes .desktop source, updated PKGBUILD, and assets/icon.png.
  • makepkg succeeds locally (or CI package artifact is available).
  • Fresh install or reinstall path on Arch with a GTK-based desktop (GNOME, KDE, XFCE, etc.) for menu/launcher checks.
  • GUI code still uses ICON_NAME / com.vylpes.vyxcalc (src/gui.rs).

AC1 — Desktop entry in repo

ID Steps Expected
T1.1 Inspect repo tree for the .desktop file (e.g. beside PKGBUILD or under packaging/) File exists and is tracked in git
T1.2 Open the .desktop file Contains at minimum: Type=Application, Name, Comment, Exec=vyxcalc, Icon=com.vylpes.vyxcalc, Categories includes Calculator, Terminal=false
T1.3 Validate with desktop-file-validate (if available on build host) No errors (warnings acceptable per policy)

AC2 — Install desktop entry

ID Steps Expected
T2.1 Build package: makepkg -sf (or use CI artifact) Build succeeds
T2.2 Install package: pacman -U vyxcalc-*.pkg.tar.* Install succeeds
T2.3 ls -l /usr/share/applications/com.vylpes.vyxcalc.desktop File exists, mode 644
T2.4 cat the installed file Content matches repo .desktop (or expected installed copy)

AC3 — Install icon system-wide

ID Steps Expected
T3.1 After install, check /usr/share/icons/hicolor/128x128/apps/com.vylpes.vyxcalc.png File exists, mode 644
T3.2 Compare checksum or visual diff to assets/icon.png in repo Same image as packaged source
T3.3 Confirm GUI ICON_NAME is com.vylpes.vyxcalc Matches installed icon basename

AC4 — Launcher behaviour

ID Steps Expected
T4.1 From app menu, launch Vyxcalc (search by name) GTK calculator GUI opens
T4.2 Close GUI; run vyxcalc with no subcommand in terminal Same GUI opens (default entrypoint per main.rs)
T4.3 From menu launcher, perform a simple calculation GUI is functional (smoke)

AC5 — Launcher icon

ID Steps Expected
T5.1 In application menu/list, view Vyxcalc entry Branded icon shown (not missing/generic placeholder)
T5.2 If DE caches icons, run gtk-update-icon-cache or relogin as needed Icon still correct after cache refresh

AC6 — Existing install steps unchanged

ID Steps Expected
T6.1 which vyxcalc and ls -l /usr/bin/vyxcalc Binary installed as before
T6.2 ls -l /usr/share/licenses/vyxcalc/LICENSE License path unchanged and file present
T6.3 Run CLI/GUI smoke tests from existing release checklist No regression on binary-only flows

AC7 — Production pipeline

ID Steps Expected
T7.1 Push to release branch used for tags; trigger or observe Forgejo production workflow for Arch package makepkg / publish job succeeds
T7.2 Download produced .pkg.tar.* from release artifacts Package contains .desktop under usr/share/applications/ and icon under usr/share/icons/hicolor/128x128/apps/
T7.3 Install artifact on clean Arch host and repeat T2–T5 spot checks Pass

README / documentation (subtask)

ID Steps Expected
T8.1 Read README (or packaging doc) for post-install launcher verification steps Clear instructions to confirm menu entry and icon after pacman -U

Sign-off checklist

  • All T1–T8 cases pass on target Arch + GTK desktop.
  • Exec, Icon, binary name, and GUI ICON_NAME aligned (vyxcalc / com.vylpes.vyxcalc).
  • Tagged production package build green and artifact verified.

Moving to needs/approval for your review before implementation. @Vylpes

## Planning — needs/tests → needs/approval QA scripts mapped to the acceptance criteria in the issue body. Run after implementation on an Arch test host (or Arch container) using a package built from the updated `PKGBUILD` on the release branch used for tagged builds. ### Preconditions - Branch includes `.desktop` source, updated `PKGBUILD`, and `assets/icon.png`. - `makepkg` succeeds locally (or CI package artifact is available). - Fresh install or reinstall path on Arch with a GTK-based desktop (GNOME, KDE, XFCE, etc.) for menu/launcher checks. - GUI code still uses `ICON_NAME` / `com.vylpes.vyxcalc` (`src/gui.rs`). --- ### AC1 — Desktop entry in repo | ID | Steps | Expected | |----|--------|----------| | T1.1 | Inspect repo tree for the `.desktop` file (e.g. beside `PKGBUILD` or under `packaging/`) | File exists and is tracked in git | | T1.2 | Open the `.desktop` file | Contains at minimum: `Type=Application`, `Name`, `Comment`, `Exec=vyxcalc`, `Icon=com.vylpes.vyxcalc`, `Categories` includes `Calculator`, `Terminal=false` | | T1.3 | Validate with `desktop-file-validate` (if available on build host) | No errors (warnings acceptable per policy) | --- ### AC2 — Install desktop entry | ID | Steps | Expected | |----|--------|----------| | T2.1 | Build package: `makepkg -sf` (or use CI artifact) | Build succeeds | | T2.2 | Install package: `pacman -U vyxcalc-*.pkg.tar.*` | Install succeeds | | T2.3 | `ls -l /usr/share/applications/com.vylpes.vyxcalc.desktop` | File exists, mode `644` | | T2.4 | `cat` the installed file | Content matches repo `.desktop` (or expected installed copy) | --- ### AC3 — Install icon system-wide | ID | Steps | Expected | |----|--------|----------| | T3.1 | After install, check `/usr/share/icons/hicolor/128x128/apps/com.vylpes.vyxcalc.png` | File exists, mode `644` | | T3.2 | Compare checksum or visual diff to `assets/icon.png` in repo | Same image as packaged source | | T3.3 | Confirm GUI `ICON_NAME` is `com.vylpes.vyxcalc` | Matches installed icon basename | --- ### AC4 — Launcher behaviour | ID | Steps | Expected | |----|--------|----------| | T4.1 | From app menu, launch **Vyxcalc** (search by name) | GTK calculator GUI opens | | T4.2 | Close GUI; run `vyxcalc` with no subcommand in terminal | Same GUI opens (default entrypoint per `main.rs`) | | T4.3 | From menu launcher, perform a simple calculation | GUI is functional (smoke) | --- ### AC5 — Launcher icon | ID | Steps | Expected | |----|--------|----------| | T5.1 | In application menu/list, view **Vyxcalc** entry | Branded icon shown (not missing/generic placeholder) | | T5.2 | If DE caches icons, run `gtk-update-icon-cache` or relogin as needed | Icon still correct after cache refresh | --- ### AC6 — Existing install steps unchanged | ID | Steps | Expected | |----|--------|----------| | T6.1 | `which vyxcalc` and `ls -l /usr/bin/vyxcalc` | Binary installed as before | | T6.2 | `ls -l /usr/share/licenses/vyxcalc/LICENSE` | License path unchanged and file present | | T6.3 | Run CLI/GUI smoke tests from existing release checklist | No regression on binary-only flows | --- ### AC7 — Production pipeline | ID | Steps | Expected | |----|--------|----------| | T7.1 | Push to release branch used for tags; trigger or observe Forgejo production workflow for Arch package | `makepkg` / publish job succeeds | | T7.2 | Download produced `.pkg.tar.*` from release artifacts | Package contains `.desktop` under `usr/share/applications/` and icon under `usr/share/icons/hicolor/128x128/apps/` | | T7.3 | Install artifact on clean Arch host and repeat T2–T5 spot checks | Pass | --- ### README / documentation (subtask) | ID | Steps | Expected | |----|--------|----------| | T8.1 | Read README (or packaging doc) for post-install launcher verification steps | Clear instructions to confirm menu entry and icon after `pacman -U` | --- ### Sign-off checklist - [ ] All T1–T8 cases pass on target Arch + GTK desktop. - [ ] `Exec`, `Icon`, binary name, and GUI `ICON_NAME` aligned (`vyxcalc` / `com.vylpes.vyxcalc`). - [ ] Tagged production package build green and artifact verified. Moving to **needs/approval** for your review before implementation. @Vylpes
Smithy-bot removed their assignment 2026-11-10 11:04:25 +00:00
Smithy-bot stopped working 2026-11-10 11:04:25 +00:00
15 seconds
Vylpes removed their assignment 2026-11-10 15:04:20 +00:00
Vylpes self-assigned this 2026-11-19 19:59:39 +00:00
Vylpes added this to the 0.1 Sprint 3 project 2026-11-19 19:59:42 +00:00
Vylpes stopped working 2026-11-19 20:06:38 +00:00
6 minutes 46 seconds
Sign in to join this conversation.
No description provided.