catwalk3d-thumbnailer

LOW
maintainer gyscos 0 votes base catwalk3d scanned 2026-11-01 01:59:19.609877
View on AUR
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
3pkgbase=catwalk3d
4pkgname=(catwalk3d catwalk3d-thumbnailer)
5pkgver=2.4.2
6pkgrel=2
7pkgdesc="Headless 3D model thumbnails rendered on the CPU, entirely in Rust"
8arch=('x86_64' 'aarch64')
9url="https://github.com/cmeister2/catwalk3d"
10license=('MIT')
11makedepends=('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.
16options=('!lto' '!debug')
17# The crates.io tarball ships the Cargo.lock matching the upstream release.
18source=("$pkgbase-$pkgver.tar.gz::https://static.crates.io/crates/$pkgbase/$pkgbase-$pkgver.crate"
19 "catwalk3d.thumbnailer")
20sha256sums=('a50dce4378f267a5407235ff648d8b4261ed4bb4e6a6e56ae6d979c5f6b95a2f'
21 '08ce99bbe5e6cd70607d71d45a79c6d511cd4e5d9123b2dbd3d50e3634e637bd')
22
23prepare() {
24 cd "$pkgbase-$pkgver"
25 export RUSTUP_TOOLCHAIN=stable
26 cargo fetch --locked --target "$(rustc --print host-tuple)"
27}
28
29build() {
30 cd "$pkgbase-$pkgver"
31 export RUSTUP_TOOLCHAIN=stable
32 export CARGO_TARGET_DIR=target
33 cargo build --frozen --release --bin catwalk
34}
35
36check() {
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
42package_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
51package_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)SeverityRules
2026-11-01 01:59:19 Low 1

Report a package

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

0 / 4000
Your suggestion