====== Updating brave-bin by hand with paru and makepkg ======
Use this when Brave nags that it is out of date, but ''paru -Syu'' says
''brave-bin'' is current. Verified on CachyOS with ''paru'' and ''makepkg''.
**The AUR maintainer is behind upstream. Bump the PKGBUILD yourself.**
===== Quick Reference =====
^ Task ^ Command ^
| Installed version | ''pacman -Q brave-bin'' |
| AUR version | ''paru -Si brave-bin'' |
| Running version | ''brave:%%//%%version'' in the address bar |
| Latest stable | ''https://brave.com/latest/'' |
| Rebuild after bump | ''updpkgsums && makepkg -si'' |
| Full restart | ''brave:%%//%%restart'' |
===== Confirm it is the AUR, not a stale process =====
**# Compare installed against AUR:**
pacman -Q brave-bin; paru -Si brave-bin | grep Version
If ''brave:%%//%%version'' is older than ''pacman -Q'', the package is fine.
Brave was never fully restarted. Use ''brave:%%//%%restart'' and stop here.
If all three versions match and ''brave.com/latest'' shows a newer version,
the AUR is behind. Continue below.
===== Bump the package =====
**# Install updpkgsums if missing:**
sudo pacman -S --needed pacman-contrib
**# Pull the PKGBUILD into a fresh directory:**
cd ~ && rm -rf brave-bin && paru -G brave-bin && cd brave-bin
**# Set the new version — take it from brave.com/latest:**
ver=1.XX.YYY
**# Write it into the PKGBUILD and reset pkgrel:**
sed -i "s/^pkgver=.*/pkgver=$ver/; s/^pkgrel=.*/pkgrel=1/" PKGBUILD
**# Refresh checksums for the new download:**
updpkgsums
**# Build and install:**
makepkg -si
**# Restart Brave fully:**
brave:%%//%%restart
Check ''brave:%%//%%version''. It should now match upstream.
==== Gotchas ====
**# 1. Closing the window does not stop Brave.**
Brave keeps running in the background. The old binary stays in memory and
keeps nagging. Use ''brave:%%//%%restart'' or ''pkill -f brave''.
**# 2. paru will report your package as newer than the AUR.**
That is expected until the maintainer catches up. Once the AUR version
reaches yours, ''paru -Syu'' takes over again. You do not need to do anything.
**# 3. updpkgsums is not installed by default.**
''updpkgsums: command not found'' means ''pacman-contrib'' is missing.
===== Troubleshooting =====
^ Symptom ^ Cause ^ Fix ^
| Nag persists after update | old process still running | ''brave:%%//%%restart'' |
| ''paru'' says up to date | AUR maintainer lagging | bump PKGBUILD as above |
| ''404'' during ''makepkg'' | version typo, or upstream URL changed | recheck ''$ver'', read ''source='' line |
| ''==> ERROR: One or more files did not pass the validity check'' | skipped ''updpkgsums'' | run ''updpkgsums'', rebuild |
| ''updpkgsums: command not found'' | ''pacman-contrib'' missing | ''sudo pacman -S pacman-contrib'' |
Rule of thumb: **restart Brave first. Bump the PKGBUILD only when brave.com
is ahead of the AUR.**