mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
24 lines
268 B
Bash
24 lines
268 B
Bash
#!/bin/bash
|
|
|
|
cd /sources
|
|
tar xf zstd-1.5.2.tar.gz
|
|
cd zstd-1.5.2
|
|
|
|
patch -Np1 -i ../zstd-1.5.2-upstream_fixes-1.patch
|
|
|
|
make -j5 prefix=/usr
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make check
|
|
|
|
make prefix=/usr install
|
|
|
|
rm -v /usr/lib/libzstd.a
|
|
|
|
cd /sources
|
|
rm -rf zstd-1.5.2
|
|
|