Add void support, plus some other updates

This commit is contained in:
askiiart 2024-04-17 21:41:40 -05:00
parent 2b9c0a8d6c
commit 6199ce3d88
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
13 changed files with 62 additions and 12 deletions

View file

@ -2,10 +2,9 @@
# Exit if there's an error # Exit if there's an error
set -e set -e
# Modify constants as needed # Modify constants as needed
GITEA_URL="https://git.askiiart.net"
GIT_NAME="askiiart" GIT_NAME="askiiart"
GIT_EMAIL="dev@askiiart.net" GIT_EMAIL="dev@askiiart.net"
KEY_ID="02EFA1CE3C3E4AAD7A863AB8ED24985CA884CD61" KEY_ID="CFCF6723A8ED791C5FD25CB5858969DCCC2E792D"
# Note: This waits until enter is pressed # Note: This waits until enter is pressed
# read -p "Press Enter to continue" < /dev/tty # read -p "Press Enter to continue" < /dev/tty

View file

@ -31,6 +31,14 @@ elif command_exists "emerge"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "apk"; then elif command_exists "apk"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "xbps-install"; then
sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
mkdir ~/Applications
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/TheAssassin/AppImageLauncher/releases/latest | grep "browser_download_url.*appimagelauncher_.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd -
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

@ -1 +1 @@
Subproject commit 274c0a37d3669c18d73ecb5510b7778992cdaa51 Subproject commit 4bbfa111d57c72dffdac872278e4ac4bc6c6603d

View file

@ -21,6 +21,10 @@ elif command_exists "dnf"; then
cd ~ cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd - cd -
elif command_exists "xbps-install"; then
sudo xbps-install claws-mail spamassassin
ln -s /etc/sv/spamd /var/service/
sv start spamd
else else
echo "IDK" echo "IDK"
fi fi

View file

@ -22,9 +22,13 @@ elif command_exists "emerge"; then
exit exit
elif command_exists "apk"; then elif command_exists "apk"; then
sudo apk add fish sudo apk add fish
elif command_exists "xbps-install"; then
sudo xbps-install fish-shell -y
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
exit exit
fi fi
chsh -s $(readlink -f $(which fish)) chsh -s $(readlink -f $(which fish))
fish -c "tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Dark --show_time='24-hour format' --classic_prompt_separators=Vertical --powerline_prompt_heads=Sharp --powerline_prompt_tails=Flat --powerline_prompt_style='One line' --prompt_spacing=Compact --icons='Many icons' --transient=No"

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
command_exists() { type "$1" &>/dev/null; }
# on void i could totally install the nerd fonts via `xbps-install nerd-fonts-otf` but i am NOT installing an extra 1.45-ish GB of the rest of the nerd fonts along with it
# stock firacode is available via `font-firacode` though
sudo mkdir /usr/share/fonts/firacode sudo mkdir /usr/share/fonts/firacode
mkdir ./tmp-fonts mkdir ./tmp-fonts
cd ./tmp-fonts cd ./tmp-fonts
@ -8,12 +12,16 @@ curl $(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest
unzip FiraCode.zip unzip FiraCode.zip
sudo mv FiraCodeNerdFont*.ttf /usr/share/fonts/firacode/ sudo mv FiraCodeNerdFont*.ttf /usr/share/fonts/firacode/
sudo mkdir /usr/share/fonts/atkinson-hyperlegible if command_exists "xbps-install"; then
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Regular.ttf sudo xbps-install font-atkinson-hyperlegible-otf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Bold.ttf else
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Italic.ttf sudo mkdir /usr/share/fonts/atkinson-hyperlegible
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-BoldItalic.ttf curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Regular.ttf
sudo mv AtkinsonHyperlegible*.ttf /usr/share/fonts/atkinson-hyperlegible/ curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Bold.ttf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Italic.ttf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-BoldItalic.ttf
sudo mv AtkinsonHyperlegible*.ttf /usr/share/fonts/atkinson-hyperlegible/
fi
cd - cd -
rm -rf ./tmp-fonts rm -rf ./tmp-fonts

View file

@ -39,6 +39,13 @@ elif command_exists "emerge"; then
# Untested # Untested
sudo eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git sudo eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git
emaint -r librewolf sync emaint -r librewolf sync
elif command_exists "xbps-install"; then
mkdir librewolf
curl $(curl -s https://api.github.com/repos/index-0/librewolf-void/releases/latest | grep "browser_download_url.*librewolf-.*.x86_64.xbps" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -LO
sudo xbps-rindex -a librewolf-*.x86_64.xbps
sudo xbps-install -R $PWD librewolf
cd -
rm -rf librewolf
else else
echo "Figure it out yourself, or get the AppImage from here: https://gitlab.com/librewolf-community/browser/appimage/-/releases" echo "Figure it out yourself, or get the AppImage from here: https://gitlab.com/librewolf-community/browser/appimage/-/releases"
fi fi

View file

@ -6,19 +6,21 @@ if [ $(whoami) == "root" ]; then
exit 1 exit 1
fi fi
# only fedora is up-to-date
command_exists() { type "$1" &>/dev/null; } command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then if command_exists "apt-get"; then
sudo apt-get install kitty -y sudo apt-get install kitty -y
echo "Please install SchildiChat, nvim/neovim" echo "Please install SchildiChat, nvim/neovim"
elif command_exists "dnf"; then elif command_exists "dnf"; then
sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rust cargo clippy p7zip mosh krita podman podman-docker podman-compose gajim schildichat-desktop -y sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim schildichat-desktop progress yt-dlp genisoimage zstd iperf3 -y
# Install Prism Launcher # Install Prism Launcher
sudo dnf copr enable g3tchoo/prismlauncher sudo dnf copr enable g3tchoo/prismlauncher
sudo dnf install prismlauncher-qt5 sudo dnf install prismlauncher-qt5
elif command_exists "yay"; then elif command_exists "yay"; then
yay -S kitty schildichat-desktop-bin digikam eog man-db neovim prismlauncher-qt5-bin --noconfirm --needed yay -S kitty schildichat-desktop-bin digikam man-db neovim prismlauncher-qt5-bin progress --noconfirm --needed
elif command_exists "zypp"; then elif command_exists "zypp"; then
# Untested # Untested
sudo zypper install kitty -y sudo zypper install kitty -y
@ -28,6 +30,10 @@ elif command_exists "emerge"; then
exit exit
elif command_exists "apk"; then elif command_exists "apk"; then
echo Not yet supported, exiting... echo Not yet supported, exiting...
elif command_exists "xbps-install";
# missing: hexgl, drawing, clippy, schildichat, genisoimage
# not included: libfreeglut, don't think that's required
sudo xbps-install kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp zstd iperf3
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
exit exit

View file

@ -26,6 +26,9 @@ elif command_exists "apk"; then
sudo apk add git sudo apk add git
sudo rc-update add libvirtd sudo rc-update add libvirtd
sudo rc-service libvirtd start sudo rc-service libvirtd start
elif command_exists "xbps-install"; then
sudo xbps-install qemu libvirt virt-manager
sudo usermod -aG libvirt $(whoami)
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

View file

@ -17,7 +17,7 @@ elif command_exists "dnf"; then
mkdir $HOME/Applications mkdir $HOME/Applications
cd $HOME/Applications cd $HOME/Applications
curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C - curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd - # throws an error but it works? cd - # throws an error but it works?
AppImageLauncherSettings & AppImageLauncherSettings &
sleep 5 sleep 5
kill $(pidof AppImageLauncherSettings) kill $(pidof AppImageLauncherSettings)
@ -28,6 +28,9 @@ elif command_exists "yay"; then
#sudo $EDITOR /etc/pacman.conf #sudo $EDITOR /etc/pacman.conf
yay -S steam yay -S steam
yay -S protonup-qt-bin dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed yay -S protonup-qt-bin dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed
elif command_exists "xbps-install"; then
sudo xbps-install steam gperftools gperftools-32bit
# missing: protonup-qt
else else
echo "IDK" echo "IDK"
fi fi

View file

@ -16,6 +16,8 @@ elif command_exists "yum"; then
rm ./vesktop-*.rpm rm ./vesktop-*.rpm
elif command_exists "pacman"; then elif command_exists "pacman"; then
yay -S vesktop-bin --noconfirm --needed yay -S vesktop-bin --noconfirm --needed
elif command_exists "xbps-install"; then
echo "VESKTOP UNSUPPORTED ON VOID"
else else
echo "IDK, check the repo: https://github.com/Vencord/Vesktop" echo "IDK, check the repo: https://github.com/Vencord/Vesktop"
fi fi

View file

@ -34,6 +34,8 @@ elif command_exists "emerge"; then
elif command_exists "apk"; then elif command_exists "apk"; then
echo Not yet supported, exiting... echo Not yet supported, exiting...
exit exit
elif command_exists "xbps-install"; then
sudo xbps-install vscode
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

View file

@ -16,6 +16,10 @@ elif command_exists "yum"; then
sudo dnf install youtube-music -y sudo dnf install youtube-music -y
elif command_exists "yay"; then elif command_exists "yay"; then
yay -S youtube-music-bin --noconfirm --needed yay -S youtube-music-bin --noconfirm --needed
elif command_exists "xbps-install"; then
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/th-ch/youtube-music/releases/latest | grep "browser_download_url.*YouTube-Music-.*.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
cd -
else else
echo "IDK, check the repo: https://github.com/th-ch/youtube-music" echo "IDK, check the repo: https://github.com/th-ch/youtube-music"
fi fi