install scripts

This commit is contained in:
Roman Volovoy
2026-09-28 12:45:07 +02:00
parent a0341ca1c7
commit b8304c06af
2 changed files with 40 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
STOW_VERSION="${STOW_VERSION:-2.4.1}"
# Create temp build directory
BUILD_DIR=$(mktemp -d)
trap 'rm -rf "$BUILD_DIR"' EXIT
# 1. Download and extract
cd "$BUILD_DIR"
curl -O "http://ftp.gnu.org/gnu/stow/stow-${STOW_VERSION}.tar.gz"
tar xf "stow-${STOW_VERSION}.tar.gz"
cd "stow-${STOW_VERSION}"
# 2. Configure installation to user directory
./configure --prefix="$HOME/.local"
# 3. Compile and install (no sudo needed)
make
make install
# 4. Add to PATH (add this line to ~/.bashrc or ~/.zshrc)
export PATH="$HOME/.local/bin:$PATH"
# 5. Verify installation
stow --version