Installs converted for void.
This commit is contained in:
@@ -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,8 +17,22 @@ 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."
|
||||
|
||||
@@ -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 "✓ Raylib dependencies installed."
|
||||
echo ""
|
||||
Reference in New Issue
Block a user