I've decided to repost my comment as I just kept editing minor things to minimize the amount of implications & assumptions I was making - I was also writing it at work, so that context switching probably also didn't help...
@mehrad Sorry for the late reply, but I haven't enabled notifications for this thread because my message was a mere comment & I didn't even expect a reply... it definitely was not a punch - I'm sorry if it felt like one. I just saw you frequently marking this package as out-of-date, even though it wasn't, and thought I could clear up the confusion.
AFAIK, the pkgver variable is not ever preferred over the pkgver() function - at least, it is not stated explicitly anywhere, and most AUR helpers I've tried (yay, yaourt & pamac) don't prefer it either. Personally, I understand it as a mere convenience for people using AUR, so that they know what version they are getting & so that AUR helpers can automatically determine when a package is out of date.
I do agree, that if you want to get automatic updates (via -Syyu, etc) when a new git commit is available, you will need to update the pkgver
variable of this package, otherwise, you'd need to manually run the update. Sadly I don't think there is a way to automate that, so that's why I believe package updates like the "Update to release 0.8.3" you were mentioning are still welcome - but I have seen up-to-date -git
packages with updates as far back as few years (none come to mind rn).
edit: nvm.. It's been a while and I completely forgot about the --devel
flag.. That does automate it, meaning this entire conversation was borderline useless.
Pinned Comments
GC268DM commented on 2022-05-29 10:40 (UTC)
What worked for me was
Where -a stands for aur and --devel for development packages.
Since the --devel flag checks if behind the development packages (like "*-git" packages) there are any newer versions, it will update to the latest version of the package in git and not require and update on the aur listing
mehrad commented on 2022-01-19 10:26 (UTC) (edited on 2022-01-19 10:28 (UTC) by mehrad)
Please stop flagging this AUR as out-of-date unless you have tried these:
If you use a proper AUR helper (e.g
paru
,yay
) this AUR will be use the latest commit of the Github repo. If you usepamac
, it will not update based on the latest commit automatically and you should dopamac install --upgrade flameshot-git
to force it to check for upgrades. Therefore, this AUR cannot become out-of-date unless the Github URL or dependencies get out of date.