getyaak
LOW
maintainer hanneshapke
0 votes
scanned 2026-09-12 19:12:35.548512
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: Hannes Hapke <hannes.hapke@gmail.com>
2
pkgname=getyaak
3
_pkgname=yaak
4
pkgver=0.2.2
5
pkgrel=1
6
pkgdesc="Translate natural language to bash commands using any OpenAI-compatible LLM"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/hanneshapke/yaak"
9
license=('Apache-2.0')
10
conflicts=('getyaak-bin' 'yaak-cli')
11
depends=('gcc-libs')
12
makedepends=('cargo')
13
source=("$_pkgname-$pkgver.tar.gz::https://github.com/hanneshapke/yaak/archive/refs/tags/v$pkgver.tar.gz")
14
sha256sums=('6c7f35ce1749208059b635733169d1144eaffc8a9f0506821735e1b8ea88f06f')
15
16
prepare() {
17
cd "$_pkgname-$pkgver"
18
export RUSTUP_TOOLCHAIN=stable
19
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
20
}
21
22
build() {
23
cd "$_pkgname-$pkgver"
24
export RUSTUP_TOOLCHAIN=stable
25
export CARGO_TARGET_DIR=target
26
cargo build --frozen --release --all-features
27
}
28
29
check() {
30
cd "$_pkgname-$pkgver"
31
export RUSTUP_TOOLCHAIN=stable
32
cargo test --frozen --release
33
}
34
35
package() {
36
cd "$_pkgname-$pkgver"
37
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
38
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
40
41
# Shell completions generated at runtime by the yaak binary itself.
42
"$pkgdir/usr/bin/$_pkgname" --completions bash | install -Dm644 /dev/stdin \
43
"$pkgdir/usr/share/bash-completion/completions/$_pkgname"
44
"$pkgdir/usr/bin/$_pkgname" --completions zsh | install -Dm644 /dev/stdin \
45
"$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
46
"$pkgdir/usr/bin/$_pkgname" --completions fish | install -Dm644 /dev/stdin \
47
"$pkgdir/usr/share/fish/vendor_completions.d/$_pkgname.fish"
48
}
49
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-12 19:12:35 | Low | 1 |