xremap / aur-autoupdater

2 stars 1 forks source link

allow multiple AUR packages #49

Open k0kubun opened 6 months ago

k0kubun commented 6 months ago

Originally filed by @rikutons at https://github.com/xremap/xremap/issues/465:


I'm using multiple desktop env on 1 computer. But xremap-x11-bin and xremap-wlroots-bin are conflicting at /usr/bin/xremap so I can't switch them easily.

paru -S xremap-x11-bin then paru -S xremap-wlroots-bin makes

error: failed to commit transaction (conflicting files)
xremap-wlroots-bin: /usr/bin/xremap exists in filesystem (owned by xremap-x11-bin)
Errors occurred, no packages were upgraded.

For example in case x11, can you make xremap-x11-bin's binary name to /usr/bin/xremap-x11 and create symlink to /usr/bin/xremap if /usr/bin/xremap is empty, or always override it to allow multiple xremap's packeges?

k0kubun commented 6 months ago

I'm open to adopting that feature. Would you be interested in working on a pull request for it? You might be able to achieve it by modifying assets/xremap-*-bin/PKGBUILD.tmpl.

szdytom commented 5 months ago

I suggest we move the binaries to /usr/bin/xremap-{env} and make /usr/bin/xremap a shell script that checks the existence of each binary and invokes the first found. The shell script can be an separate package and the binary packages marks it a an dependence.