Files
wehub-resource-sync 3e779be6f3
CI / lint (push) Failing after 13m4s
CI / test (3.11, ubuntu-latest) (push) Failing after 2m4s
CI / test (3.13, ubuntu-latest) (push) Successful in 13m30s
CI / test (3.14, ubuntu-latest) (push) Successful in 17m21s
CI / test (3.12, ubuntu-latest) (push) Successful in 17m55s
CI / discover-apps-ps (push) Successful in 1m56s
CI / test (3.9, ubuntu-latest) (push) Successful in 13m17s
CI / test (3.10, ubuntu-latest) (push) Successful in 26m21s
CI / audit (push) Successful in 13m38s
Deploy site / deploy (push) Has been cancelled
CI / test (3.14, ubuntu-24.04-arm) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:37 +08:00

61 lines
2.3 KiB
Markdown

# `winpodx-git` — AUR development package
Builds winpodx from the GitHub **main** branch (latest, unreleased code), as a
separate AUR package from the stable [`winpodx`](../aur/) (which uses tagged
release tarballs).
## How it stays current
The version is **not** hand-maintained. `pkgver()` derives it from git at build
time:
```
0.6.0.r12.gabc1234 = <last tag> . r<commits since tag> . g<short hash>
```
So you publish this PKGBUILD to AUR **once**. Every rebuild re-runs `pkgver()`
against fresh `main`, so the version tracks the newest commit automatically.
- **Users get updates** with `yay -Syu --devel` / `paru -Syu --devel` (the
`--devel` pass re-checks VCS packages and rebuilds when `main` moved).
Without `--devel`, a user reinstalls (`yay -S winpodx-git`) to pull latest.
- **`winpodx-git` and `winpodx` can't coexist** (`provides`/`conflicts`).
- **Pin instead of tracking main:** add a fragment to `source`, e.g.
`…winpodx.git#commit=<sha>` or `#tag=v0.6.0`. (If you want a fixed version,
the stable `winpodx` package is the better choice.)
## Publishing to AUR (maintainer steps)
One-time account + SSH-key setup is identical to the stable package — see
[`packaging/aur/README.md`](../aur/README.md) (generate `~/.ssh/aur_winpodx`,
upload the `.pub` to your AUR profile). **The same key works for every package**
on your AUR account, so reuse the existing `aur_winpodx` key.
```bash
# Point git at the AUR key (same line the stable winpodx publish uses).
export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur_winpodx -o IdentitiesOnly=yes"
# 1. Clone the (empty) AUR repo — created on first push.
git clone ssh://aur@aur.archlinux.org/winpodx-git.git
cd winpodx-git
# 2. Copy the package files from this repo.
cp /path/to/winpodx/packaging/aur-git/PKGBUILD .
cp /path/to/winpodx/packaging/aur-git/winpodx.install .
# 3. Regenerate .SRCINFO from the PKGBUILD (AUR validates it; the one in this
# repo is a starting point — always regenerate on an Arch box).
makepkg --printsrcinfo > .SRCINFO
# 4. (recommended) Test-build locally first.
makepkg -si
# 5. Commit + push — this publishes / updates the AUR package.
git add PKGBUILD .SRCINFO winpodx.install
git commit -m "winpodx-git: build from main"
git push
```
Re-push only when the **build recipe** changes (deps, install steps) — not per
upstream commit; the git source + `pkgver()` handle commit tracking.