Downloading source archive from GitHub release instead of repo tar

Stefan Bethke stb at lassitu.de
Sat Mar 7 11:54:01 UTC 2020


I'm working on updating the Gitea port to 1.11, and I need to download the source archive off the release page, instead of an archive of the Github repo. The source archive on the release page contains additional files that are needed for the build (Go and node modules that would need to be downloaded during the build otherwise).

PORTNAME=       gitea
DISTVERSIONPREFIX=      v
DISTVERSION=    1.11.2
USE_GITHUB=     yes

How do I tell make that I do want to download the release tar.gz instead of the repo archive? Specifically, I need to download
https://github.com/go-gitea/gitea/releases/download/v1.11.2/gitea-src-1.11.2.tar.gz
instead of
https://codeload.github.com/go-gitea/gitea/tar.gz/v1.11.2?dummy=/go-gitea-gitea-v1.11.2_GH0.tar.gz


Stefan

--
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 529 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200307/7184d7fd/attachment.sig>


More information about the freebsd-ports mailing list