zsvo/install-script.sh
itexpert228 fc315b1c2c
Fix LFS dependency handling - skip Debian-specific packages
- Remove attempts to build Debian dependencies in LFS environment
- Add comprehensive package mapping to ignore Debian-specific packages
- Use Debian only as source repository, not for dependency resolution
- Skip optional/specific dependencies (graphics, audio, test frameworks, etc.)
- Keep only essential build tools (cmake, pkgconf, gcc, make, etc.)

Now zsvo properly works in LFS:
- Downloads source from Debian .dsc files
- Shows required dependencies for manual installation
- Builds .zsvo packages using own recipes
- Installs packages to LFS root filesystem
2026-03-14 19:32:54 +03:00

32 lines
827 B
Bash

#!/bin/bash
# Simple install script for auto-generated packages
set -e
PKGDIR="$1"
echo "Installing to $PKGDIR"
# Try CMake
if [ -f build/cmake_install.cmake ]; then
echo "Using CMake install"
DESTDIR="$PKGDIR" cmake --install build
exit 0
fi
# Try Meson
if [ -f build/meson-private/coredata.dat ]; then
echo "Using Meson install"
DESTDIR="$PKGDIR" meson install -C build ${ZSVO_MESON_INSTALL_ARGS}
exit 0
fi
# Try Makefile
if [ -f Makefile ] || [ -f makefile ] || [ -f GNUmakefile ]; then
echo "Using Makefile install"
make DESTDIR="$PKGDIR" PREFIX=/usr install ${ZSVO_MAKE_INSTALL_FLAGS}
exit 0
fi
# Fallback - create minimal structure
echo "Warning: No standard build system found, installing common directories"
mkdir -p "$PKGDIR/usr/bin" "$PKGDIR/usr/lib" "$PKGDIR/usr/include"