mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
39 lines
625 B
Bash
39 lines
625 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d lz4-${lz4_version} ] && rm -rf lz4-${lz4_version}
|
|
|
|
tar -zxf ${lz4_tarball}
|
|
|
|
cd lz4-${lz4_version}
|
|
|
|
make BUILD_STATIC=no PREFIX=/usr
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building lz4"
|
|
fi
|
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
echo "running lz4 make check"
|
|
make -j1 check > ${GLSOURCES}/lz4.check.log 2>&1
|
|
fi
|
|
|
|
make BUILD_STATIC=no PREFIX=/usr install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing lz4"
|
|
fi
|
|
|
|
popd
|
|
|
|
# cleanup
|
|
|
|
pushd $GLSOURCES
|
|
|
|
rm -rf lz4-${lz4_version}
|
|
|
|
popd
|