[Slackbuilds-users] 'Correct' download link from Github?

Klaatu klaatu at mixedsignals.ml
Sun Apr 17 22:09:26 UTC 2022


This is a very common.  I think it would be nice to add an example of David's answer to the SlackBuild templates for both new and experienced maintainers.  I've wasted countless minutes looking up the "secret formula" when starting or updating my scripts. 

On 17 April 2022 8:33:33 AM UTC, Dave Woodfall <dave at slackbuilds.org> wrote:
>On 17/04/22 18:08,
>andrew <andrew.david.strong at gmail.com> put forth the proposition:
>> I am putting a new Slackbuild together for opustags, which is hosted
>> on github:
>> https://github.com/fmang/opustags
>> I am a little unsure of the correct download link from github which
>> shows some variation whether wget or browser is used.
>> Is there an SBo policy about such links?
>
>No policy yet AFAIK but you can find the release tag (add /tags/ to
>the end of the URL) and then do something like:
>
>URL/archive/TAG/PRGNAM-TAG.tar.gz which would be:
>
>https://github.com/fmang/opustags/archive/1.2.3/opustags-1.2.3.tar.gz
>
>or
>
>https://github.com/fmang/opustags/archive/v1.2.3/opustags-1.2.3.tar.gz
>
>(note the v before the first TAG sometimes works if the first URL
>gives a 404.)
>
>The downloaded tarball can be tested with `tar tf <archive> | head'
>to see if the directory name really matches the expected version
>number.
>
>HTH
>
>--
>Dave
>_______________________________________________
>SlackBuilds-users mailing list
>SlackBuilds-users at slackbuilds.org
>https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>FAQ - https://slackbuilds.org/faq/
>

-- 
Klaatu


More information about the SlackBuilds-users mailing list