2018-12-18 02:08:53 +01:00
|
|
|
#!/usr/bin/env bash
|
2022-04-30 00:13:04 +02:00
|
|
|
set -euxo pipefail
|
2018-12-17 20:21:49 +01:00
|
|
|
|
2023-05-18 01:33:34 +02:00
|
|
|
version="3.0.3"
|
|
|
|
sha256=0c54af17afcf7c18e1a3aafadd5d5f7706a9fbcaebd56f4a38664847608e5c97
|
2018-12-17 20:21:49 +01:00
|
|
|
|
2022-04-30 00:13:04 +02:00
|
|
|
tmpdir="$(mktemp -d)"
|
|
|
|
trap 'rm -r "$tmpdir"' EXIT
|
|
|
|
cd "$tmpdir"
|
|
|
|
tarball="pgroonga-$version.tar.gz"
|
2023-05-18 01:33:34 +02:00
|
|
|
curl -fLO --retry 3 "https://github.com/pgroonga/pgroonga/releases/download/$version/$tarball"
|
2022-04-30 00:13:04 +02:00
|
|
|
sha256sum -c <<<"$sha256 $tarball"
|
|
|
|
tar -xzf "$tarball"
|
|
|
|
cd "pgroonga-$version"
|
2018-12-17 20:21:49 +01:00
|
|
|
|
2022-04-30 00:13:04 +02:00
|
|
|
make -j "$(nproc)" HAVE_MSGPACK=1
|
2018-12-17 20:21:49 +01:00
|
|
|
make install
|