catwalk3d-thumbnailer
LOW
maintainer gyscos
0 votes
base
catwalk3d
scanned 2026-11-01 01:59:19.609877
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: Alexandre Bury <alexandre.bury@gmail.com>
2
3
pkgbase=catwalk3d
4
pkgname=(catwalk3d catwalk3d-thumbnailer)
5
pkgver=2.4.2
6
pkgrel=2
7
pkgdesc="Headless 3D model thumbnails rendered on the CPU, entirely in Rust"
8
arch=('x86_64' 'aarch64')
9
url="https://github.com/cmeister2/catwalk3d"
10
license=('MIT')
11
makedepends=('cargo')
12
# makepkg's -flto turns the bundled zstd C objects into GCC bitcode that the
13
# Rust linker cannot resolve. Cargo still applies the crate's own thin LTO.
14
# Full debuginfo on the large generated CAD crates pushes rustc past 7 GB per
15
# job and gets parallel builds OOM-killed.
16
options=('!lto' '!debug')
17
# The crates.io tarball ships the Cargo.lock matching the upstream release.
18
source=("$pkgbase-$pkgver.tar.gz::https://static.crates.io/crates/$pkgbase/$pkgbase-$pkgver.crate"
19
"catwalk3d.thumbnailer")
20
sha256sums=('a50dce4378f267a5407235ff648d8b4261ed4bb4e6a6e56ae6d979c5f6b95a2f'
21
'08ce99bbe5e6cd70607d71d45a79c6d511cd4e5d9123b2dbd3d50e3634e637bd')
22
23
prepare() {
24
cd "$pkgbase-$pkgver"
25
export RUSTUP_TOOLCHAIN=stable
26
cargo fetch --locked --target "$(rustc --print host-tuple)"
27
}
28
29
build() {
30
cd "$pkgbase-$pkgver"
31
export RUSTUP_TOOLCHAIN=stable
32
export CARGO_TARGET_DIR=target
33
cargo build --frozen --release --bin catwalk
34
}
35
36
check() {
37
cd "$pkgbase-$pkgver"
38
# The crate omits the upstream test fixtures, so smoke-test the bundled example.
39
target/release/catwalk examples/models/gear.obj --output - --size 64 > /dev/null
40
}
41
42
package_catwalk3d() {
43
depends=('glibc' 'gcc-libs')
44
45
cd "$pkgbase-$pkgver"
46
install -Dm755 target/release/catwalk "$pkgdir/usr/bin/catwalk"
47
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
48
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
49
}
50
51
package_catwalk3d-thumbnailer() {
52
pkgdesc="Desktop thumbnailer for STL, 3MF and STEP models using catwalk3d"
53
arch=('any')
54
depends=('catwalk3d')
55
# Both register the same MIME types, so which one runs would be unpredictable.
56
conflicts=('stl-thumb')
57
58
install -Dm644 catwalk3d.thumbnailer "$pkgdir/usr/share/thumbnailers/catwalk3d.thumbnailer"
59
install -Dm644 "$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60
}
61
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 01:59:19 | Low | 1 |