PortValhalla/scripts/Common/Config/Fonts/MicrosoftFonts/install.sh

32 lines
829 B
Bash
Raw Normal View History

2022-12-06 09:59:21 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE" "$USER";
2022-12-06 09:59:21 +00:00
else
tempDir="$(mktemp -d)";
pushd "$tempDir" > /dev/null;
2022-12-06 09:59:21 +00:00
git clone https://github.com/fangfufu/httpdirfs.git;
pushd httpdirfs > /dev/null;
2022-12-06 09:59:21 +00:00
make;
install -m 755 -D httpdirfs /usr/local/bin/httpdirfs;
popd > /dev/null;
2022-12-06 09:59:21 +00:00
git clone https://aur.archlinux.org/ttf-ms-win11-auto.git ttf-win11;
2023-03-16 19:17:15 +00:00
pushd ttf-win11 > /dev/null;
2023-03-16 19:06:14 +00:00
# shellcheck source=/dev/null
2022-12-06 09:59:21 +00:00
source ./PKGBUILD;
prepare;
package_ttf-ms-win11-auto;
rm -f /usr/local/bin/httpdirfs;
2023-03-16 19:17:15 +00:00
popd > /dev/null;
wget -O CascadiaCode.zip https://github.com/microsoft/cascadia-code/releases/download/v2111.01/CascadiaCode-2111.01.zip;
2022-12-06 09:59:21 +00:00
unzip -d . CascadiaCode.zip;
cp ttf/* /usr/share/fonts/TTF;
popd > /dev/null;
2022-12-06 09:59:21 +00:00
fi