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

@ -1,5 +1,9 @@
#!/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
mkdir ./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
sudo mv FiraCodeNerdFont*.ttf /usr/share/fonts/firacode/
sudo mkdir /usr/share/fonts/atkinson-hyperlegible
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Regular.ttf
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/
if command_exists "xbps-install"; then
sudo xbps-install font-atkinson-hyperlegible-otf
else
sudo mkdir /usr/share/fonts/atkinson-hyperlegible
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Regular.ttf
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 -
rm -rf ./tmp-fonts