diff --git a/etc/pamac.conf b/etc/pamac.conf new file mode 100644 index 0000000..6d60971 --- /dev/null +++ b/etc/pamac.conf @@ -0,0 +1,50 @@ +### Pamac configuration file + +## When removing a package, also remove those dependencies +## that are not required by other packages (recurse option): +RemoveUnrequiredDeps + +## How often to check for updates, value in hours (0 to disable): +RefreshPeriod = 3 + +## When no update is available, hide the tray icon: +#NoUpdateHideIcon + +## When applying updates, enable packages downgrade: +EnableDowngrade + +## When installing packages, do not check for updates: +SimpleInstall + +## Allow Pamac to search and install packages from AUR: +EnableAUR + +## Keep built packages from AUR in cache after installation: +#KeepBuiltPkgs + +## When AUR support is enabled check for updates from AUR: +CheckAURUpdates + +## When check updates from AUR support is enabled check for vcs updates: +CheckAURVCSUpdates + +## AUR build directory: +BuildDirectory = /var/tmp + +## Number of versions of each package to keep when cleaning the packages cache: +KeepNumPackages = 0 + +## Remove only the versions of uninstalled packages when cleaning the packages cache: +#OnlyRmUninstalled + +## Download updates in background: +#DownloadUpdates + +## Maximum Parallel Downloads: +MaxParallelDownloads = 4 + +#CheckFlatpakUpdates + +#EnableSnap + +#EnableFlatpak diff --git a/setup.sh b/setup.sh index c867170..7ed4666 100755 --- a/setup.sh +++ b/setup.sh @@ -63,6 +63,8 @@ package_remove() { } setup_essentials() { + sudo pacman -S --needed base-devel wget + # install pamac if it does not exist if ! command -v pamac &>/dev/null; then log "pamac was not installed already. Installing now..." @@ -615,12 +617,20 @@ setup_pacman() { setup_pamac() { 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/libpamac-aur.git + cd ./libpamac-aur && makepkg -si + + cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1) 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) + + # idk why but the permissions is set like this + sudo install -g root -o root -m u=rwx,g=rx,o=rx ./etc/pamac.conf /etc/pamac.conf } setup_pavucontrol() {