CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page Categories: Ports

How to make github source-downloads manageable.

Author

FredrikRinnestam, just_fun

Problem

Github has long been a source of headaches for many crux ports. Tarballs downloaded from github releases are named by the git tag. So we get lovely URLs like this: https://github.com/clbr/radeontop/archive/v1.0.tar.gz

And the resulting download is a generic v1.0.tar.gz tarball that may conflict with other ports.

Workaround

Luckily github now supports downloads with a slightly modified url that gives you a nice tarball-name. Take the URL:
https://github.com/clbr/radeontop/archive/v1.0.tar.gz
and compare it with
https://github.com/clbr/radeontop/archive/v1.0/radeontop-v1.0.tar.gz
The second example results in a unique filename.