rusty-coco-git
LOW
maintainer fbf-prog64
1 votes
scanned 2026-11-03 02:04:04.155120
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}"
5
pkgname="${_name}-git"
6
pkgver=r8.9c07c1f
7
pkgrel=1
8
pkgdesc="TRS-80 Color Computer emulator written in Rust"
9
arch=('x86_64')
10
url="https://github.com/gorsat/${_gitrepo}"
11
license=('MIT')
12
install="${_name}.install"
13
depends=('sh' 'libgcc' 'glibc' 'alsa-lib')
14
makedepends=('git' 'cargo')
15
16
source=(
17
"${pkgname}::git+${url}.git#branch=main"
18
'rusty-coco.template.sh'
19
)
20
sha256sums=('SKIP'
21
'9c2607dc5ddd9280a693d9faf859c4c5993352e2c40983014c2af92ec2295eb1')
22
23
pkgver() {
24
cd "${srcdir}/${pkgname}"
25
26
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
27
}
28
29
prepare() {
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
48
build() {
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
61
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-11-03 02:04:04 | Low | 2 |