Skip to content

Commit

Permalink
add in par2cmdline-turbo for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Sep 29, 2023
1 parent 2c259c9 commit 11d6fb0
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build/root/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ fi
# call pacman db and package updater script
source upd.sh

# check arch as par2cmdline-turbo does not support arm64, thus use par2cmdline
if [[ "${TARGETARCH}" == "arm64" ]]; then
par2cmdline="par2cmdline"
else
par2cmdline=""
fi

# define pacman packages
pacman_packages="git python3 python-pyopenssl p7zip unrar unzip par2cmdline"
pacman_packages="git python python-pyopenssl p7zip unrar unzip ${par2cmdline}"

# install compiled packages using pacman
if [[ ! -z "${pacman_packages}" ]]; then
Expand All @@ -39,8 +46,13 @@ fi
# aur packages
####

# define aur packages
aur_packages=""
# check arch as par2cmdline-turbo does not support arm64
if [[ "${TARGETARCH}" == "arm64" ]]; then
aur_packages=""
else
# define aur packages
aur_packages="par2cmdline-turbo"
fi

# call aur install script (arch user repo)
source aur.sh
Expand Down

0 comments on commit 11d6fb0

Please sign in to comment.