2 # download, build and install the zstd library
6 stamp
="$dir/.last-build-zstd"
11 if [ -d "$dir" -a -f "$stamp" ]; then
12 echo "Using valid cache for $dir, built" `cat "$stamp"`
15 sudo
make install PREFIX
=/usr
19 echo "No or stale cache for $dir, rebuilding"
23 wget https
://github.com
/facebook
/zstd
/archive
/v
${version}.
tar.gz
24 tar xf v
${version}.
tar.gz
27 sudo
make install PREFIX
=/usr