Please remove
provides=('zig')andconflicts=('zig'). Currently, this implies that the package is a direct drop-in replacement forzig, which is not the case.
It's true that this package is not a dropin replacement for zig, I added these following the example of the rustup package in the official repos, which is marked the same way with rust.
I suppose the key difference is that rustup will automatically download a toolchain on first run; I'll remove them as you request.
Pinned Comments
SpieringsAE commented on 2024-05-07 19:19 (UTC) (edited on 2024-05-07 19:19 (UTC) by SpieringsAE)
As a hint to everyone using this, it will not work out of the box, it will try to symlink the selected zig compiler to /usr/bin/ which you dont have permission for likely, I set up an alias which always sets the --path-link option to a folder thats on the $PATH that I have regular access to.I have $HOME/.local/bin on my path so something like:
alias zigup="zigup --path-link $HOME/.local/bin/zig"in your .bashrc or whatever shell you use will help with this.