Date: Sat, 7 Mar 2020 13:10:25 +0100 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: Stefan Bethke <stb@lassitu.de>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Downloading source archive from GitHub release instead of repo tar Message-ID: <bc5ad915-8342-2d70-5da1-9d669435404c@FreeBSD.org> In-Reply-To: <AF78C4D9-E80A-43A9-BDA0-F05780966770@lassitu.de> References: <AF78C4D9-E80A-43A9-BDA0-F05780966770@lassitu.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/7/20 12:53 PM, Stefan Bethke wrote: > 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 In such case I'd just just use MASTER_SITES= https://github.com/go-gitea/gitea/releases/download/${DISTVERSIONFULL}/ and then set DISTNAME appropriately. Cheers, Mateusz Piotrowski
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bc5ad915-8342-2d70-5da1-9d669435404c>