replaced paru with pamac
This commit is contained in:
parent
2e4ec410a9
commit
05ee2545d1
1 changed files with 12 additions and 20 deletions
32
setup.sh
32
setup.sh
|
@ -56,30 +56,18 @@ smart_mkdir() {
|
|||
}
|
||||
|
||||
package_install() {
|
||||
paru -S --noconfirm "$@"
|
||||
pamac install --no-confirm "$@"
|
||||
}
|
||||
|
||||
package_remove() {
|
||||
paru -R --noconfirm "$@"
|
||||
}
|
||||
|
||||
install_paru() {
|
||||
log "installing paru"
|
||||
|
||||
smart_mkdir "$SCRIPT_DIR/tmp"
|
||||
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for paru installation" && exit 1)
|
||||
sudo pacman --noconfirm -S --needed base-devel git
|
||||
git clone https://aur.archlinux.org/paru-bin.git
|
||||
cd ./paru-bin && makepkg -si
|
||||
|
||||
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing paru" && exit 1)
|
||||
pamac remove --no-confirm "$@"
|
||||
}
|
||||
|
||||
setup_essentials() {
|
||||
# install paru if it does not exist
|
||||
if ! command -v paru &> /dev/null; then
|
||||
log "paru was not installed already. Installing now..."
|
||||
install_paru
|
||||
# install pamac if it does not exist
|
||||
if ! command -v pamac &> /dev/null; then
|
||||
log "pamac was not installed already. Installing now..."
|
||||
setup_pamac
|
||||
fi
|
||||
|
||||
# install dialog if it's not installed already
|
||||
|
@ -495,9 +483,13 @@ setup_pacman() {
|
|||
}
|
||||
|
||||
setup_pamac() {
|
||||
package_install \
|
||||
pamac_aur `# package manager GUI with AUR support` \
|
||||
smart_mkdir "$SCRIPT_DIR/tmp"
|
||||
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1)
|
||||
sudo pacman --noconfirm -S --needed git
|
||||
git clone https://aur.archlinux.org/pamac-aur.git
|
||||
cd ./pamac-aur && makepkg -si
|
||||
|
||||
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing pamac" && exit 1)
|
||||
}
|
||||
|
||||
setup_pavucontrol() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue