rust-yak

LOW
maintainer imjiaoyuan 0 votes scanned 2026-10-07 14:05:47.471701
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# Upstream was renamed from llm to yak in v0.3.7 (config migrates
3# ~/.llm -> ~/.yak automatically on first run).
4
5pkgname=rust-yak
6_pkgname=yak
7pkgver=0.3.7
8pkgrel=1
9pkgdesc='Terminal-first AI coding agent in Rust'
10arch=('x86_64' 'aarch64')
11url='https://github.com/imjiaoyuan/yak'
12license=('MIT')
13depends=('glibc' 'gcc-libs')
14makedepends=('rust' 'gcc')
15provides=("${_pkgname}=${pkgver}")
16conflicts=('yak' 'yak-bin' 'yak-git' 'rust-yak-bin' 'rust-llm' 'rust-llm-bin')
17source=(
18 "${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
19)
20sha256sums=('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
26build() {
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
38package() {
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)SeverityRules
2026-10-07 14:05:47 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