

6·
3 days agoI think the answer can be found at The pkgver() function
To use pkgver(), you still need to declare the pkgver variable with the most recent value. makepkg will invoke function pkgver(), and update variable pkgver accordingly.
I read that as set pkgver to the most recent version at the time you last updated the PKGBUILD. Then the pkgver() function will update it when building the package. I guess you just need something set. It’s not clear to me if it actually matters or not.

Yes, it took a little digging to find it! Not sure why it’s necessary if it’s unused. Maybe for error checking? Is it tricky for shell scripts to detect whether a function (i.e. pkgver()) has been defined?