install.sh 464 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e
  3. # Zstd install script
  4. # Installs zstd with proper prefix configuration
  5. build_dir=$1
  6. install_dir=$2
  7. install_type=$3
  8. # With simpleBuildEnvironment flag, we're already in build directory
  9. # Source is in sources/zstd relative to package root
  10. src_dir="sources/zstd"
  11. echo "Installing zstd..."
  12. make -C ${src_dir} prefix=${DESTDIR}${PREFIX} install
  13. echo "Removing static library..."
  14. rm -v ${DESTDIR}${LIBDIR}/libzstd.a
  15. echo "Installation complete."