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
|
|
|
|
2024-03-01 22:05:17 +01:00
|
|
|
version="3.1.8"
|
|
|
|
sha256=5a38743492ba21f708df447b1ca0ac07ceff9715d9604aa2303f6dda795d096e
|
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
|