zulip/scripts/lib/build-pgroonga

18 lines
448 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -euxo pipefail
version="3.0.3"
sha256=0c54af17afcf7c18e1a3aafadd5d5f7706a9fbcaebd56f4a38664847608e5c97
tmpdir="$(mktemp -d)"
trap 'rm -r "$tmpdir"' EXIT
cd "$tmpdir"
tarball="pgroonga-$version.tar.gz"
curl -fLO --retry 3 "https://github.com/pgroonga/pgroonga/releases/download/$version/$tarball"
sha256sum -c <<<"$sha256 $tarball"
tar -xzf "$tarball"
cd "pgroonga-$version"
make -j "$(nproc)" HAVE_MSGPACK=1
make install