blob: b4a24d1cdeb5be75457b59f0c4c9e2f2df87ffeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC2154
# The PKGBUILD for RediSearch.
# Maintainer: Matheus <matheusgwdl@protonmail.com>
# Contributor: Matheus <matheusgwdl@protonmail.com>
declare -r _pkgname="RediSearch"
declare -r _tag="11cbdcdc7debab298e59e8b1056fa3ce02a4e1a0"
pkgname="redisearch"
pkgver="2.10.7"
pkgrel="1"
pkgdesc="A query and indexing engine for Redis, providing secondary indexing, full-text search, vector similarity search and aggregations."
arch=("any")
url="https://github.com/RediSearch/${_pkgname}"
license=("custom:RSALv2")
depends=("boost-libs" "redis")
makedepends=("boost" "conan" "git")
source=("${pkgname}::git+${url}.git#tag=${_tag}"
"git+https://github.com/google/googletest.git"
"git+https://github.com/redis/hiredis.git"
"git+https://github.com/libuv/libuv.git"
"git+https://github.com/RedisLabsModules/readies.git"
"git+https://github.com/RedisLabsModules/RedisModulesSDK.git"
"git+https://github.com/google/s2geometry.git"
"git+https://github.com/RedisAI/VectorSimilarity.git")
sha512sums=("08ce8d3d35bc5ff2a460b6506c6d41c96aa7fcd45f4c4890459d1405d3d9350663008594354595d9efedbc61113b9a0fe48c23e91e46a8e8d63ecc4bc96ef400"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP")
prepare()
{
cd "${srcdir}"/"${pkgname}"/ || exit 1
git submodule init
git config submodule.deps/googletest.url "${srcdir}"/googletest/
git config submodule.deps/hiredis.url "${srcdir}"/hiredis/
git config submodule.deps/libuv.url "${srcdir}"/libuv/
git config submodule.deps/readies.url "${srcdir}"/readies/
git config submodule.deps/RedisModulesSDK.url "${srcdir}"/RedisModulesSDK/
git config submodule.deps/s2geometry.url "${srcdir}"/s2geometry/
git config submodule.deps/VectorSimilarity.url "${srcdir}"/VectorSimilarity/
git -c protocol.file.allow=always submodule update
}
build()
{
cd "${srcdir}"/"${pkgname}"/ || exit 1
make
}
package()
{
# Assure that the directories exist.
mkdir -p "${pkgdir}"/usr/lib/redis/
mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}"/
mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}"/
# Install the software.
install -Dm755 "${srcdir}"/"${pkgname}"/bin/linux-x64-release/search/redisearch.so "${pkgdir}"/usr/lib/redis/
# Install the documentation.
cp -r "${srcdir}"/"${pkgname}"/docs/* "${pkgdir}"/usr/share/doc/"${pkgname}"/
install -Dm644 "${srcdir}"/"${pkgname}"/README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/
find "${pkgdir}"/usr/share/doc/"${pkgname}"/ -type d -exec chmod 755 {} +
find "${pkgdir}"/usr/share/doc/"${pkgname}"/ -type f -exec chmod 644 {} +
# Install the license.
install -Dm644 "${srcdir}"/"${pkgname}"/LICENSE.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/
}
|