rust-yak
LOW
maintainer imjiaoyuan
0 votes
scanned 2026-10-07 14:05:47.471701
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
# Upstream was renamed from llm to yak in v0.3.7 (config migrates
3
# ~/.llm -> ~/.yak automatically on first run).
4
5
pkgname=rust-yak
6
_pkgname=yak
7
pkgver=0.3.7
8
pkgrel=1
9
pkgdesc='Terminal-first AI coding agent in Rust'
10
arch=('x86_64' 'aarch64')
11
url='https://github.com/imjiaoyuan/yak'
12
license=('MIT')
13
depends=('glibc' 'gcc-libs')
14
makedepends=('rust' 'gcc')
15
provides=("${_pkgname}=${pkgver}")
16
conflicts=('yak' 'yak-bin' 'yak-git' 'rust-yak-bin' 'rust-llm' 'rust-llm-bin')
17
source=(
18
"${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
19
)
20
sha256sums=('4d4ded4fff8c2824dd83f864a005183667c9dd2a132d50e1c6a40b2f110f84de')
21
22
# Release profile already sets lto=thin and strip=true. crates.io is reached
23
# during build() (small four-crate dependency set), matching the common
24
# approach for Rust source packages in this repo.
25
26
build() {
27
cd "${_pkgname}-${pkgver}"
28
# Arch's default CFLAGS include -flto=auto, which makes the bundled C code
29
# (ring, libsqlite3-sys) emit GCC LTO objects that rustc's lto=thin + linker
30
# cannot resolve, so the link fails with undefined sqlite3_*/ring_* symbols.
31
# Build the C halves without it; the Rust profile is unaffected.
32
export CFLAGS="${CFLAGS//-flto=auto/}"
33
export CXXFLAGS="${CXXFLAGS//-flto=auto/}"
34
export LDFLAGS="${LDFLAGS//-flto=auto/}"
35
cargo build --release --locked
36
}
37
38
package() {
39
install -Dm755 "${_pkgname}-${pkgver}/target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
40
install -Dm644 "${_pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
41
}
42
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-07 14:05:47 | Low | 1 |