solus-project / ypkg

Modern, declarative, structured build format
https://solus-project.com/
GNU General Public License v3.0
56 stars 20 forks source link

Support for multiple sources with the same target file name #31

Open mixedCase opened 7 years ago

mixedCase commented 7 years ago

Currently there's no way to handle this situation.

Real example:

https://github.com/elm-lang/elm-compiler/archive/0.18.0.zip https://github.com/elm-lang/elm-make/archive/0.18.0.zip https://github.com/elm-lang/elm-package/archive/0.18.0.zip https://github.com/elm-lang/elm-reactor/archive/0.18.0.zip https://github.com/elm-lang/elm-repl/archive/0.18.0.zip

This is the tooling for the Elm language, it's released in multiple repos simultaneously on a new language version. All the zip files have this version as the file name.

As a reference, Arch's PKGBUILDs handle this with an optional prefix: elm-compiler.0.18.0.zip::https://github.com/elm-lang/elm-compiler/archive/0.18.0.zip

Justinzobel commented 7 years ago

Currently a known issue with ypkg. The alternative option is to re-host them on the solus-project site. @ikeydoherty can you please re-host the zip files and provide the links to them for @mixedCase

ikeydoherty commented 7 years ago

No - that's a workaround, and I specifically spoke with @mixedCase on IRC so we can actually fix this issue :)

Justinzobel commented 7 years ago

Ahh excellent! Minetest will be a good test-case as it's got a 0.4.16 out.

tommyshem commented 6 years ago

I would like to help on this feature as need it to build apple Swift with the same names on github. I have seen Arch PKGBUILD way and it works well.