changed build phase, fixed sudo added plasma

This commit is contained in:
Sohrab Behdani 2024-07-23 17:13:32 +03:30
parent 1b0a532c8e
commit 7680fd747f
2 changed files with 13 additions and 22 deletions

View file

@ -7,19 +7,19 @@ sed -i 's/#\(en_US.UTF-8 UTF-8\)/\1/g' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
# Fix Pacman.conf
rm -f /etc/pacman.conf
curl https://raw.githubusercontent.com/parchlinux-ports/Parchlinuxarm-images/main/examples/pacman.conf.example >> /etc/pacman.conf
# Enable Sudo
sudo sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
pacman-key --recv-keys 0x8685AD8B
# Add archsink repo
cat <<EOF >> /etc/pacman.conf
[archsink]
Server = https://github.com/archsink/\$arch/releases/latest/download
SigLevel = Never
[ppr]
Server = https://raw.githubusercontent.com/parchlinux-arm/ppr/main/aarch64/
SigLevel = Never
[trinity]
Server = https://mirror.ppa.trinitydesktop.org/trinity/archlinux/\$arch
SigLevel = Never

View file

@ -7,21 +7,12 @@ sed -i 's/#\(en_US.UTF-8 UTF-8\)/\1/g' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
# Add archsink repo
cat <<EOF >> /etc/pacman.conf
# Fix Pacman.conf
rm -f /etc/pacman.conf
curl https://raw.githubusercontent.com/parchlinux-ports/Parchlinuxarm-images/main/examples/pacman.conf.example >> /etc/pacman.conf
[archsink]
Server = https://github.com/archsink/\$arch/releases/latest/download
SigLevel = Never
[ppr]
Server = https://raw.githubusercontent.com/parchlinux-arm/ppr/main/aarch64/
SigLevel = Never
EOF
# Enable parallel downloads
sed -i 's/#\(ParallelDownloads \)/\1/g' /etc/pacman.conf
# Enable Sudo
sudo sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
# Install useful packages
packages=(