From dde441a5c7f273b9f802448696ef0a1b35373f5d Mon Sep 17 00:00:00 2001 From: Panos Stergiotis
Date: Sat, 19 Oct 2024 20:48:30 +0200 Subject: [PATCH] fix: minor fixes and improvements --- scripts/install_clang.sh | 2 +- scripts/install_ubuntu_24.04.sh | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100755 scripts/install_ubuntu_24.04.sh diff --git a/scripts/install_clang.sh b/scripts/install_clang.sh index 21a426b..498bd76 100755 --- a/scripts/install_clang.sh +++ b/scripts/install_clang.sh @@ -1,5 +1,5 @@ #!/bin/bash -url="https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz" +url="https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/" fn="clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04" mkdir -p "$HOME/Downloads" cd "$HOME/Downloads" diff --git a/scripts/install_ubuntu_24.04.sh b/scripts/install_ubuntu_24.04.sh new file mode 100755 index 0000000..3a6c799 --- /dev/null +++ b/scripts/install_ubuntu_24.04.sh @@ -0,0 +1,37 @@ +#!/bin/bash +echo "installing dependencies for ubuntu noble (24.04)" +if ! [ -x "$(command -v tar)" ]; then + sudo apt install -y tar +fi +if ! [ -x "$(command -v bzip2)" ]; then + sudo apt install -y bzip2 +fi +if ! [ -x "$(command -v wget)" ]; then + sudo apt install -y wget +fi +if ! [ -x "$(command -v cmake)" ]; then + sudo apt install -y cmake +fi +if ! [ -x "$(command -v clang)" ]; then + sudo apt install -y clang +fi +if ! [ -x "$(command -v xsltproc)" ]; then + sudo apt install -y xsltproc +fi +# freetype +sudo apt install -y libfreetype-dev + +# glfw +sudo apt install -y libglfw3-dev + +# opengl +sudo apt install -y libgl-dev + +#libc++ +sudo apt install -y libc++-dev libc++abi-dev + +#skia deps +sudo apt install -y clang libjpeg-dev libicu-dev libwebp-dev libfontconfig-dev + +#clang (non-OS version) deps +sudo apt install libtinfo6