rusty-coco-git

LOW
maintainer fbf-prog64 1 votes scanned 2026-11-03 02:04:04.155120
View on AUR
Why flagged

The package builds from a public Git repository with no untrusted remote code execution, and the flagged low severity is due to few votes and recent upload, not malicious content.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from a public Git repository with no untrusted remote code execution, and the flagged low severity is due to few votes and recent upload, not malicious content.

PKGBUILD

1# Maintainer: Felipe BF <fprgw32 at gmail dot com>
2
3_gitrepo=coco
4_name="rusty-${_gitrepo}"
5pkgname="${_name}-git"
6pkgver=r8.9c07c1f
7pkgrel=1
8pkgdesc="TRS-80 Color Computer emulator written in Rust"
9arch=('x86_64')
10url="https://github.com/gorsat/${_gitrepo}"
11license=('MIT')
12install="${_name}.install"
13depends=('sh' 'libgcc' 'glibc' 'alsa-lib')
14makedepends=('git' 'cargo')
15
16source=(
17 "${pkgname}::git+${url}.git#branch=main"
18 'rusty-coco.template.sh'
19)
20sha256sums=('SKIP'
21 '9c2607dc5ddd9280a693d9faf859c4c5993352e2c40983014c2af92ec2295eb1')
22
23pkgver() {
24 cd "${srcdir}/${pkgname}"
25
26 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
27}
28
29prepare() {
30 cd "${srcdir}/${pkgname}"
31
32 local coco_root="/usr/share/${_name}"
33
34 cp "${_gitrepo}.yaml" "${_gitrepo}-demo.yaml"
35 sed -i "s/^ #/ /g; 7s/^/#/" "${_gitrepo}.yaml"
36 sed -i "s|\"BASIC.ROM\"|\"${coco_root}/BASIC.ROM\"|g" "${_gitrepo}.yaml"
37 sed -i "s|\"EXTBASIC.ROM\"|\"${coco_root}/EXTBASIC.ROM\"|g" "${_gitrepo}.yaml"
38
39 sed -i "s|\"hello.asm\"|\"${coco_root}/hello.asm\"|g" "${_gitrepo}-demo.yaml"
40
41 sed "s|%CONFFILE%|${coco_root}/${_gitrepo}.yaml|g" ../../"${_name}.template.sh" > "${_name}"
42 sed "s|%CONFFILE%|${coco_root}/${_gitrepo}-demo.yaml|g" ../../"${_name}.template.sh" > "${_name}-demo"
43
44 export RUSTUP_TOOLCHAIN=stable
45 cargo fetch --locked --target host-tuple
46}
47
48build() {
49 cd "${srcdir}/${pkgname}"
50
51 export RUSTUP_TOOLCHAIN=stable
52 export CARGO_TARGET_DIR=target
53
54 # Without this, compilation produces an error in "minifb".
55 export CFLAGS="-fvisibility=default"
56 export RUSTFLAGS="-C linker=cc -C link-arg=-Wl,--allow-shlib-undefined"
57
58 cargo build --frozen --release --all-features
59}
60
61package() {
62 cd "${srcdir}/${pkgname}"
63
64 local coco_root="${pkgdir}/usr/%ITEM%/${_name}"
65
66 install -Dm755 "target/release/${_gitrepo}" "${coco_root//%ITEM%/lib}/${_gitrepo}"
67 install -Dm644 hello.asm "${coco_root//%ITEM%/share}/hello.asm"
68 install -Dm644 disable_wait_routine.asm "${coco_root//%ITEM%/lib}/disable_wait_routine.asm"
69 install -Dm644 "${_gitrepo}.yaml" "${coco_root//%ITEM%/share}/${_gitrepo}.yaml"
70 install -Dm644 "${_gitrepo}-demo.yaml" "${coco_root//%ITEM%/share}/${_gitrepo}-demo.yaml"
71
72 install -Dm755 "${_name}" "${pkgdir}/usr/bin/${_name}"
73 install -Dm755 "${_name}-demo" "${pkgdir}/usr/bin/${_name}-demo"
74
75 install -Dm644 README.md "${pkgdir}/usr/share/doc/${_name}/README.md"
76 install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
77}
78
79

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 02:04:04 Low 2

Report a package

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

0 / 4000
Your suggestion