67 lines
2.4 KiB
Bash
67 lines
2.4 KiB
Bash
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Contributor: Bram Prieshof <hello@bprieshof.nl>
|
|
# Maintainer: Bram Prieshof <hello@bprieshof.nl>
|
|
pkgname=meilisearch
|
|
pkgver=1.53.1
|
|
pkgrel=1
|
|
pkgdesc="A lightning-fast search engine that fits into your apps, websites and workflow"
|
|
url="https://www.meilisearch.com/"
|
|
# ppc64le, riscv64, s390x, loongarch64: fails to build ring crate
|
|
# armhf, armv7, x86: unsupported by upstream
|
|
#arch="all !armhf !armv7 !ppc64le !riscv64 !s390x !x86 !loongarch64"
|
|
arch="x86_64"
|
|
license="MIT"
|
|
depends="ca-certificates"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
mimalloc2-dev
|
|
zstd-dev
|
|
"
|
|
pkgusers="meilisearch"
|
|
pkggroups="meilisearch"
|
|
install="$pkgname.pre-install $pkgname.post-upgrade"
|
|
subpackages="$pkgname-openrc"
|
|
source="https://github.com/meilisearch/meilisearch/archive/v$pkgver/meilisearch-$pkgver.tar.gz
|
|
$pkgname.initd
|
|
$pkgname.confd
|
|
config.patch
|
|
"
|
|
|
|
# Disable analytics (telemetry / data collection), mini-dashboard (JS project)
|
|
# and specialized tokenizers (they are huge).
|
|
_cargo_opts="--frozen --no-default-features --locked --bins --tests"
|
|
_cargo_treads=1
|
|
|
|
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
|
|
|
|
prepare() {
|
|
cargo fetch --target="$CTARGET"
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build $_cargo_opts --release -j $_cargo_treads --package meilisearch
|
|
}
|
|
|
|
check() {
|
|
ulimit -n 8192
|
|
export ZSTD_SYS_USE_PKG_CONFIG=1
|
|
cargo test --release --locked --package meilisearch -j $_cargo_treads
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
install -D -m640 -g "$pkggroups" config.toml "$pkgdir"/etc/meilisearch/config.toml
|
|
install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
|
install -d -m755 -o "$pkgusers" -g "$pkggroups" "$pkgdir"/var/lib/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
84e76f3063c169b761c51d84230f41a51552525436d7228899705df7a7440d41ab97fb7abea97b1e52e24fc7f3c5788759086662a3d057f9c54644ba38856062 meilisearch-1.53.1.tar.gz
|
|
cc2ca5cc2d7baa3d17bb2d0798211599264d11017e2f8139bec07e719b6bf99de2bb0e2eb64ba99f74ed0c299c30f12a7867c76abfe57279a714a14c030e8543 meilisearch.initd
|
|
eb07af5c10c7e5e47059d40b5d939ef0cc4ea262109e9986e78f3a461bd1982f0cd29c18d201a2904eafacfd3b650b5a691583e887e701a88bcc994e076e84c3 meilisearch.confd
|
|
abd93d3dbcfa5e62abc82e9d95e0fe572ee0fea399330f8ceaf1410ee62d6ed3226455e2aa716e3298275c306b2b56efc7562a80e85f4f63c743ca05c3b34c65 config.patch
|
|
"
|