solus-project / ypkg

Modern, declarative, structured build format

Home Page:https://solus-project.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for multiple sources with the same target file name

mixedCase opened this issue · comments

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

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

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

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

commented

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.