blob: c010a821fa92f98e7699621698aba6c017fe0cd5 (
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
|
# Maintainer: haxibami <contact at haxibami dot net>
pkgname=qdrant
pkgver=1.12.5
pkgrel=1
pkgdesc="Vector Database for the next generation of AI applications"
arch=('any')
url="https://github.com/qdrant/qdrant"
license=('Apache')
depends=('gcc-libs' 'glibc')
makedepends=('cargo' 'cmake' 'mold' 'clang' 'protobuf')
source=(
"${url}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('ca6d192a6d72b0f126c35fda271358fde7bd405342e5f97c23beaba3811be33a')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo fetch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# note: (GCC +) mold or (Clang +) lld are required to build with LTO
export RUSTFLAGS="${RUSTFLAGS} -Clink-arg=-fuse-ld=mold"
# export CC=clang CXX=clang++ RUSTFLAGS="${RUSTFLAGS} -Clink-arg=-fuse-ld=lld"
cargo build --release --bin qdrant
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|