Re: Recommended way to track upstream version in Makefile
Thomas Klausner <[email protected]> Thu, 23 Jul 2026 08:13:09 +0200
| Newsgroups | gmane.os.netbsd.devel.packages |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jul 22, 2026 at 10:19:34PM +0100, m33 wrote:
> I updated again the gotosocial packages (see on pkgsrc-wip).
>
> I need a solution to easily track upstream releases in my packaging factory.
>
> It seems many packages hosted on github have a TAG variable to track
> github's release tag, I tried to to the same for gotosocial hosted on
> codeberg. Is it OK or is there a reserved variable name for it ?
>
> "
>
> CODEBERG_TAG= 0.22.1
>
> DISTNAME= gotosocial-${CODEBERG_TAG}-source-code
>
> "
That's one way, but usually I do something like
DISTNAME= gotosocial-${CODEBERG_TAG}-source-code
PKGNAME= ${DISTNAME:S/-source-code//}
and then use ${PKGVERSION_NOREV} where you would use ${CODEBERG_TAG}.
Thomas