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-07-21 23:02:23 +02:00
|
|
|
version="3.1.0"
|
|
|
|
sha256=fd020a911ec223f5288e99131c91abb437a9a0aa9d5e51b8fdb96d633bd61fb9
|
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
|