rust-llm
LOW
maintainer imjiaoyuan
0 votes
scanned 2026-09-01 07:47:32.184737
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: imjiaoyuan <imjiaoyuan@gmail.com>
2
3
pkgname=rust-llm
4
_pkgname=llm
5
pkgver=0.1.0
6
pkgrel=1
7
pkgdesc='Terminal-first AI hub in Rust for prompting, chat, templates, embeddings and dev workflows'
8
arch=('x86_64' 'aarch64')
9
url='https://github.com/imjiaoyuan/llm'
10
license=('MIT')
11
depends=('glibc' 'gcc-libs')
12
makedepends=('rust' 'gcc')
13
provides=("${_pkgname}=${pkgver}")
14
conflicts=('llm' 'llm-bin' 'llm-git' 'rust-llm-bin')
15
source=(
16
"llm-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
17
)
18
sha256sums=('48398e4a8adc4a267bf19121f2095303f7c956776ad81b0fa9394cf1fa87d68d')
19
20
# Release profile already sets lto=thin and strip=true. crates.io is reached
21
# during build() (small four-crate dependency set), matching the common
22
# approach for Rust source packages in this repo.
23
24
build() {
25
cd "llm-${pkgver}"
26
# Arch's default CFLAGS include -flto=auto, which makes the bundled C code
27
# (ring, libsqlite3-sys) emit GCC LTO objects that rustc's lto=thin + linker
28
# cannot resolve, so the link fails with undefined sqlite3_*/ring_* symbols.
29
# Build the C halves without it; the Rust profile is unaffected.
30
export CFLAGS="${CFLAGS//-flto=auto/}"
31
export CXXFLAGS="${CXXFLAGS//-flto=auto/}"
32
export LDFLAGS="${LDFLAGS//-flto=auto/}"
33
cargo build --release --locked
34
}
35
36
package() {
37
install -Dm755 "llm-${pkgver}/target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
38
install -Dm644 "llm-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
39
}
40
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-01 07:47:32 | Low | 1 |