Fixed aur package building.

This commit is contained in:
stormdragon2976 2023-01-17 19:41:17 -05:00
parent e721b7ef60
commit 1357d2ef04

View File

@ -167,10 +167,13 @@ pacman -Su --needed --noconfirm \
bluez \ bluez \
bluez-utils \ bluez-utils \
brltty \ brltty \
cloud-utils \
cronie \ cronie \
dbus-broker \ dbus-broker \
espeak-ng \ espeak-ng \
fake-hwclock \
git \ git \
go \
magic-wormhole \ magic-wormhole \
man \ man \
man-pages \ man-pages \
@ -180,6 +183,11 @@ pacman -Su --needed --noconfirm \
pipewire-alsa \ pipewire-alsa \
pipewire-jack \ pipewire-jack \
pipewire-pulse \ pipewire-pulse \
python-pyudev \
python-daemonize \
python-evdev \
python-dbus \
python-pyte \
realtime-privileges \ realtime-privileges \
rhvoice-voice-bdl \ rhvoice-voice-bdl \
rng-tools \ rng-tools \
@ -214,30 +222,41 @@ echo -e "stormux\nstormux" | passwd "stormux"
sudo -iu stormux sudo -iu stormux
# Create desktop, downloads, music, and other directories. # Create desktop, downloads, music, and other directories.
xdg-user-dirs-update xdg-user-dirs-update
# Install the yay package manager # Build AUR packages
git clone https://aur.archlinux.org/yay.git export aurPackages=(fenrir-git \
cd yay growpartfs \
makepkg -si --noconfirm log2ram \
yay)
export PKGDEST=~/packages
for p in "\${aurPackages[@]}" ; do
git clone https://aur.archlinux.org/\${p}.git
cd ~/\${p}
makepkg -A
cd ~ cd ~
rm -rf yay rm -rf \${p}
yay -S --removemake --noconfirm fenrir-git growpartfs log2ram done
rm -rf .cache/yay
/usr/share/fenrirscreenreader/tools/configure_pipewire.sh
exit exit
# Install built packages
for p in /home/stormux/packages/* ; do
pacman -U --noconfirm \${p}
done
rm -rf /home/stormux/packages/
# Enable linger so that hopefully sound will start at login. # Enable linger so that hopefully sound will start at login.
mkdir -p /var/lib/systemd/linger mkdir -p /var/lib/systemd/linger
touch /var/lib/systemd/linger/stormux touch /var/lib/systemd/linger/stormux
systemctl --global enable dbus-broker.service pipewire.service pipewire-pulse.service wireplumber.service systemctl --global enable dbus-broker.service pipewire.service pipewire-pulse.service wireplumber.service
/usr/share/fenrirscreenreader/tools/configure_pipewire.sh /usr/share/fenrirscreenreader/tools/configure_pipewire.sh
sudo -u stormux /usr/share/fenrirscreenreader/tools/configure_pipewire.sh
# Configure sudo for group wheel, remove nopasswd for the stormux user # Configure sudo for group wheel, remove nopasswd for the stormux user
echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel
# Set the hostname # Set the hostname
echo stormux > /etc/hostname echo stormux > /etc/hostname
# Configure services # Configure services
systemctl enable brltty.path cronie.service dbus-broker.service fenrirscreenreader.service log2ram.service NetworkManager.service ntpd.service systemctl enable brltty.path cronie.service dbus-broker.service fake-hwclock.service fenrirscreenreader.service log2ram.service NetworkManager.service ntpd.service
systemctl disable dbus.service systemctl disable dbus.service
# Cleanup packages # Cleanup packages
pacman -Sc --noconfirm pacman -Sc --noconfirm
pacman -R --noconfirm go
# Update fstab for Raspberry Pi 4. Not needed until linux-aarch64 works. # Update fstab for Raspberry Pi 4. Not needed until linux-aarch64 works.
# [[ $imageVersion -eq 4 ]] && sed -i 's/mmcblk0/mmcblk1/g' /etc/fstab # [[ $imageVersion -eq 4 ]] && sed -i 's/mmcblk0/mmcblk1/g' /etc/fstab