Pamac fails to install split AUR packages
Created by: MaycneSonahoz
I file this issue following a discussion started on the forum: https://forum.manjaro.org/t/aur-installing-error/13139
The topic is about Pamac failing to install the cinnamon-sound-effects package from AUR. A workaround is to use directly yaourt, since it doesn't have a problem installing this package. I found this topic when having myself an issue while trying to install vivacious-colors-icon-theme, with the same workaround working. But knowing Pamac (might) use yaourt for AUR, if found this weird, so i dug a bit.
Long story short:
- both packages are actually split packages
- Pacman can't search AUR, so you need to either use yaourt, or pass it the package downloaded from AUR
- Pacman needs the base package in order to install a split package
- trying to download a usual package from AUR rather than the required base package does not fail, but the downloaded package in unusable
The following is a copy of post 8, in which i describe my findings:
I checked a bit the history log from pamac to see how it installs AUR packages, and instead of yaourt commands, i saw commands like
pacman -U package-name.pkg.tar.xz
so my guess is that it builds the package first, then pass it to pacman.
I went and tried to build such package as described in Arch wiki. I tried with vivacious-colors-icon-theme, because that's the one i was interested in.
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/vivacious-colors-icon-theme.tar.gz
This downloads a corrupted archive. You need to download the base package instead.
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/vivacious-colors.tar.gz tar -xvf vivacious-colors.tar.gz cd vivacious-colors makepkg -s
This builds all packages from the package base. In this case:
Then you can install your package with pacman.
pacman -U vivacious-colors-icon-theme-1.4-1-any.pkg.tar.xz
If that helps.