diff --git a/scripts/installs/install_odin b/scripts/installs/install_odin index 4ead2d2..6fa2fa5 100755 --- a/scripts/installs/install_odin +++ b/scripts/installs/install_odin @@ -1,15 +1,11 @@ #!/bin/bash -# --------------------------------------------------------------------------------- -# Odin compiler install recipe -# Target: Pop!_OS / Ubuntu / Debian -# Builds from source - recommended method on Linux -# --------------------------------------------------------------------------------- set -e ODIN_DIR="$HOME/.odin" echo "Installing Odin build dependencies..." -sudo apt update -sudo apt install -y llvm-18-dev clang-18 git-lfs build-essential +sudo xbps-install -S +sudo xbps-install -y llvm18-devel clang18 git-lfs base-devel + git lfs install --force echo "Cloning Odin repository..." @@ -21,10 +17,24 @@ else cd "$ODIN_DIR" fi -echo "Building Odin compiler..." -LLVM_CONFIG=llvm-config-18 make release-native +# Detect available LLVM 18 config tool name on Void +LLVM_CFG="" +for cfg in llvm-config-18 llvm-config18 llvm-config; do + if command -v "$cfg" >/dev/null 2>&1; then + LLVM_CFG="$cfg" + break + fi +done + +if [ -z "$LLVM_CFG" ]; then + echo "❌ Error: Could not locate a valid llvm-config binary." + exit 1 +fi + +echo "Building Odin compiler using $LLVM_CFG..." +LLVM_CONFIG="$LLVM_CFG" make release-native echo "" echo "✓ Odin install complete." echo " Add to your path if needed: export PATH=\"\$HOME/.odin:\$PATH\"" -echo " Then verify with: odin version" \ No newline at end of file +echo " Then verify with: odin version" diff --git a/scripts/installs/install_raylib_deps b/scripts/installs/install_raylib_deps index 09a09e9..af1c628 100755 --- a/scripts/installs/install_raylib_deps +++ b/scripts/installs/install_raylib_deps @@ -1,15 +1,24 @@ #!/bin/bash # --------------------------------------------------------------------------------- -# Raylib-go dependency install recipe -# Target: Pop!_OS / Ubuntu / Debian -# Installs system libs needed for raylib to run +# Raylib / Raylib-go dependency install recipe +# Target: Void Linux +# Installs system development libraries needed for Raylib / GLFW / OpenGL # --------------------------------------------------------------------------------- set -e -echo "Installing raylib-go system dependencies..." -sudo apt update -sudo apt install -y build-essential libasound2-dev libgl1-mesa-dev libx11-dev libxrandr-dev libxi-dev libxcursor-dev libxinerama-dev libxinerama-dev libxcursor-dev libxinerama-dev +echo "Installing Raylib system dependencies..." +sudo xbps-install -S +sudo xbps-install -y \ + base-devel \ + alsa-lib-devel \ + MesaLib-devel \ + libX11-devel \ + libXrandr-devel \ + libXi-devel \ + libXcursor-devel \ + libXinerama-devel \ + libXxf86vm-devel echo "" -echo "✓ Raylib-go dependencies installed." -echo "" \ No newline at end of file +echo "✓ Raylib dependencies installed." +echo ""