rust-dos
LOW
maintainer dividebysandwich
0 votes
scanned 2026-09-25 17:12:25.570634
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: dividebysandwich <josef.jahn@gmail.com>
2
3
pkgname=rust-dos
4
pkgver=0.4.1
5
pkgrel=1
6
pkgdesc="An x86 DOS emulator written in Rust, with Sound Blaster, AdLib, Gravis Ultrasound and General MIDI sound and CRT shaders"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/dividebysandwich/rust-dos"
9
license=('GPL-2.0-or-later')
10
# SDL2 opens the window, the sound device and the OpenGL context of the CRT
11
# shaders. Everything else (fonts, disk noises, Ultrasound patches) is built in.
12
depends=('glibc' 'hicolor-icon-theme' 'libgcc' 'sdl2')
13
makedepends=('cargo')
14
optdepends=('soundfont-fluid: General MIDI SoundFont for the MPU-401 (soundfont= in [sound])')
15
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
16
sha256sums=('4be473e90787260bade31457fb879af7e73fe31c90f7da0a4747b16d7d693560')
17
18
prepare() {
19
cd "$pkgname-$pkgver"
20
export RUSTUP_TOOLCHAIN=stable
21
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
22
}
23
24
build() {
25
cd "$pkgname-$pkgver"
26
export RUSTUP_TOOLCHAIN=stable
27
export CARGO_TARGET_DIR=target
28
cargo build --frozen --release --bin "$pkgname"
29
}
30
31
check() {
32
cd "$pkgname-$pkgver"
33
export RUSTUP_TOOLCHAIN=stable
34
cargo test --frozen --release
35
}
36
37
package() {
38
cd "$pkgname-$pkgver"
39
install -Dm0755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
40
install -Dm0644 "packaging/linux/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
41
install -Dm0644 "packaging/linux/$pkgname.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
42
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
43
install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
44
install -Dm0644 rust-dos.conf.example "$pkgdir/usr/share/doc/$pkgname/rust-dos.conf.example"
45
}
46
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 17:12:25 | Low | 1 |
| 2026-09-25 00:03:36 | Clean | 2 |
| 2026-09-24 23:44:46 | Low | 1 |