rust-llm

LOW
maintainer imjiaoyuan 0 votes scanned 2026-09-01 07:47:32.184737
View on AUR
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
3pkgname=rust-llm
4_pkgname=llm
5pkgver=0.1.0
6pkgrel=1
7pkgdesc='Terminal-first AI hub in Rust for prompting, chat, templates, embeddings and dev workflows'
8arch=('x86_64' 'aarch64')
9url='https://github.com/imjiaoyuan/llm'
10license=('MIT')
11depends=('glibc' 'gcc-libs')
12makedepends=('rust' 'gcc')
13provides=("${_pkgname}=${pkgver}")
14conflicts=('llm' 'llm-bin' 'llm-git' 'rust-llm-bin')
15source=(
16 "llm-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
17)
18sha256sums=('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
24build() {
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
36package() {
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)SeverityRules
2026-09-01 07:47:32 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion