Files
zulip/scripts/lib/build-groonga
shu.chen 321776ac49 provision: Add provision support for Fedora 38.
Tweaked provision script to run successfully in Fedora 38 and
included a script to build the groonga libs from source because
the packages in Fedora repos are outdated.

There is a major version jump from the last supported version (F34)
which is EOL so references and support for older versions were
removed.

Fixes: #20635
2023-08-22 11:26:29 -07:00

19 lines
457 B
Bash
Executable File

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