wip
This commit is contained in:
parent
873bebd7e3
commit
02a8f261d9
1 changed files with 24 additions and 0 deletions
24
distros.sh
24
distros.sh
|
@ -219,6 +219,30 @@ _setup() {
|
||||||
_remove() { $_sudo dnf -y remove "$@"; }
|
_remove() { $_sudo dnf -y remove "$@"; }
|
||||||
;;
|
;;
|
||||||
arch)
|
arch)
|
||||||
|
|
||||||
|
checkAUR() {
|
||||||
|
if ! command_exists yay && ! command_exists paru; then
|
||||||
|
return 69
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if command_exists pacman; then
|
||||||
|
if ! checkAUR; then
|
||||||
|
paruTempDir="$(mktemp -d)"
|
||||||
|
# if ! command_exists paru; then
|
||||||
|
echo "${YELLOW}Installing paru as AUR helper...${NC}"
|
||||||
|
$_sudo pacman -S --needed --noconfirm base-devel git
|
||||||
|
cd /opt && $_sudo git clone https://aur.archlinux.org/paru-bin.git "$paruTempDir/paru" && $_sudo chown -R "$USER": "$paruTempDir/paru"
|
||||||
|
cd "$paruTempDir/paru" && makepkg --noconfirm -si
|
||||||
|
echo "${GREEN}Paru installed${NC}"
|
||||||
|
# else
|
||||||
|
# printf "%b\n" "${GREEN}Paru already installed${RC}"
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
_install() {
|
_install() {
|
||||||
if command_exists paru; then
|
if command_exists paru; then
|
||||||
echo_pkg "Using paru"
|
echo_pkg "Using paru"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue