lfs-buildscripts/CH8Build/CH08.08-zstd.sh
YellowJacketLinux d3f689dafe Chap8 stuff
2024-10-04 00:20:13 -07:00

29 lines
503 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d zstd-${zstd_version} ] && rm -rf zstd-${zstd_version}
tar -zxf ${zstd_tarball}
cd zstd-${zstd_version}
make prefix=/usr
if [ $? -ne 0 ]; then
myfail "Failed building zstd"
fi
echo "running zstd make check"
make check > ${GLSOURCES}/zstd.check 2>&1
make prefix=/usr install
if [ $? -ne 0 ]; then
myfail "Failed installing zstd"
fi
rm -f /usr/lib/libzstd.a