On Wed, 16 Oct 2019 at 21:22, Iyán Méndez Veiga <me@iyanmv.com> wrote:
Hi,
I recently adopted two packages from AUR: adwaita-qt and adwaita-qt4. Today @morealaz (who is maintaining adwaita-qt-git) asked me to edit some of the arrays in the PKGBUILD (please read comments in the AUR website) and after reading the wiki I did a commit with those little changes.
I am not sure if they are correct and he argues that I should a conflict array. Can someone have a look at these two (three) PKGBUILDS and tell me if I should change something and why?
Thanks, Iyán
replaces=(foo) is for when a package is replaced. Pacman will automatically uninstall foo during the next upgrade and replace it with your package. Not the kinda thing that's suitable for packages that *can* be used as an alternative. With conflicts=(foo), it's the job of a package to conflict with what it provides (if they do conflict) and not the other way around. For example foo-git provides and conflicts with foo. But foo has no reason to conflict with foo-git because the conflict has already been stated in the other package. So if your changes follow those rules then you're good.