Installs converted for void.
This commit is contained in:
@@ -1,15 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# ---------------------------------------------------------------------------------
|
|
||||||
# Odin compiler install recipe
|
|
||||||
# Target: Pop!_OS / Ubuntu / Debian
|
|
||||||
# Builds from source - recommended method on Linux
|
|
||||||
# ---------------------------------------------------------------------------------
|
|
||||||
set -e
|
set -e
|
||||||
ODIN_DIR="$HOME/.odin"
|
ODIN_DIR="$HOME/.odin"
|
||||||
|
|
||||||
echo "Installing Odin build dependencies..."
|
echo "Installing Odin build dependencies..."
|
||||||
sudo apt update
|
sudo xbps-install -S
|
||||||
sudo apt install -y llvm-18-dev clang-18 git-lfs build-essential
|
sudo xbps-install -y llvm18-devel clang18 git-lfs base-devel
|
||||||
|
|
||||||
git lfs install --force
|
git lfs install --force
|
||||||
|
|
||||||
echo "Cloning Odin repository..."
|
echo "Cloning Odin repository..."
|
||||||
@@ -21,8 +17,22 @@ else
|
|||||||
cd "$ODIN_DIR"
|
cd "$ODIN_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building Odin compiler..."
|
# Detect available LLVM 18 config tool name on Void
|
||||||
LLVM_CONFIG=llvm-config-18 make release-native
|
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 ""
|
||||||
echo "✓ Odin install complete."
|
echo "✓ Odin install complete."
|
||||||
|
|||||||
@@ -1,15 +1,24 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# ---------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------
|
||||||
# Raylib-go dependency install recipe
|
# Raylib / Raylib-go dependency install recipe
|
||||||
# Target: Pop!_OS / Ubuntu / Debian
|
# Target: Void Linux
|
||||||
# Installs system libs needed for raylib to run
|
# Installs system development libraries needed for Raylib / GLFW / OpenGL
|
||||||
# ---------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Installing raylib-go system dependencies..."
|
echo "Installing Raylib system dependencies..."
|
||||||
sudo apt update
|
sudo xbps-install -S
|
||||||
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
|
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 ""
|
||||||
echo "✓ Raylib-go dependencies installed."
|
echo "✓ Raylib dependencies installed."
|
||||||
echo ""
|
echo ""
|
||||||
Reference in New Issue
Block a user