blob: e407dec59a0d752a3f3fd2c3592c6e5c849887a0 (
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
79
80
81
82
83
84
|
# Maintainer: Hiroshi Hatake <cosmo0920.wp[at]gmail.com>
pkgname=groonga
pkgdesc="An open-source fulltext search engine and column store."
pkgver=16.0.0
pkgrel=1
arch=('i686' 'x86_64')
url="https://groonga.org/"
license=('LGPL2.1-or-later')
depends=(
arrow
blas
blosc2
gcc
lapack
libedit
libevent
libstemmer
lz4
mecab-git
mecab-ipadic
msgpack-c
simdjson
xsimd
xxhash
zeromq
)
makedepends=(
cmake
ninja
pkgconf
ruby
ruby-rake
)
checkdepends=(
git
make
ruby-bundler
ruby-erb
)
source=(
"https://github.com/groonga/groonga/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
"https://github.com/groonga/groonga/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz.asc"
)
sha512sums=(
"07302ae8b9be29a5a68c5d97e6e4967cfefc69938f1239a47e3d841f3cd94636825d1c93109b3d3194821177ad4b2e0f80d315090d8d956951ba5af88bb0affd"
"SKIP"
)
validpgpkeys=(2701F317CFCCCB975CADE9C2624CF77434839225)
# See also: https://wiki.archlinux.org/title/CMake_package_guidelines
build() {
rm -rf build
local cmake_options=(
-B build
-S "${pkgname}-${pkgver}"
-G Ninja
-W no-dev
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_SKIP_RPATH=ON
-D GRN_WITH_APACHE_ARROW=ON
-D GRN_WITH_BLOSC=system
-D GRN_WITH_MRUBY=ON
)
cmake "${cmake_options[@]}"
cmake --build build
}
check() {
cd build
export GEM_HOME="${PWD}/gem"
PATH="${GEM_HOME}/bin:${PATH}"
MAKEFLAGS="-j$(nproc)" gem install --no-user-install grntest
BUILD_DIR="${PWD}/test/command" \
"../${pkgname}-${pkgver}/test/command/run-test.sh" \
--n-retries=2 \
--read-timeout=30 \
--reporter=mark
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|