blob: e802b523852bbfa71e2102fda728f6ec0c870ccb (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
pkgname=quickwit
pkgver=0.8.2
pkgrel=1
pkgdesc='A fast and cost-efficient distributed search engine for large-scale, immutable data'
arch=('x86_64')
url='https://quickwit.io'
license=('AGPL-3.0-or-later')
makedepends=('git' 'rust' 'cmake' 'clang' 'yarn' 'protobuf')
depends=('gcc-libs' 'zlib' 'openssl')
backup=('etc/quickwit.yaml')
source=("$pkgname-$pkgver.tar.gz::https://github.com/quickwit-oss/quickwit/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('aa9e932662e48447d814e36db657acd4c9a69beb97c16006e9cb5539585fd947')
b2sums=('52f3f78a1b979222d4a117410697a85b80778568c2aa029d2e8aa704be4d6bd9e7ba86e8653d51a8debcaea30eb6ce89a4f925537364d5890375ddd5e04341ae')
options=('!lto')
prepare() {
cd "quickwit-$pkgver"
cargo fetch --manifest-path quickwit/Cargo.toml --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "quickwit-$pkgver"
# set env vars
# local QW_COMMIT_DATE=$(TZ=UTC0 git log -1 --format=%cd --date=format-local:'%Y-%m-%dT%H:%M:%SZ')
# local QW_COMMIT_HASH=$(git rev-parse HEAD)
local QW_COMMIT_TAGS="v$pkgver"
# build web UI
pushd "quickwit/quickwit-ui"
yarn install
yarn build
popd
cargo build --manifest-path quickwit/Cargo.toml --frozen --release --features release-feature-set
}
package() {
cd "quickwit-$pkgver"
# binary
install -Dm0755 -t "$pkgdir/usr/bin" quickwit/target/release/quickwit
# config
install -Dm0640 -t "$pkgdir/etc" "config/$pkgname.yaml"
# license
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" \
LICENSE_AGPLv3.0.txt
}
|