snippit-git

LOW
maintainer mikili 0 votes scanned 2026-11-03 20:05:31.475419
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: mikilimj <milosz@medportal.pl>
2# VCS package: always builds the tip of upstream main. pkgver comes from
3# `git describe` against the latest release tag, so nothing needs bumping on
4# release — only a rebuild (makepkg -f / an AUR helper's -git handling).
5pkgname=snippit-git
6pkgver=1.2.2.r4.gf6f438c
7pkgrel=1
8pkgdesc="Desktop clip-trimming tool with live multi-track audio mixing and lossless export (Tauri + React) (git version)"
9arch=('x86_64')
10url="https://github.com/mikilimj/Snippit"
11license=('LicenseRef-proprietary')
12depends=('webkit2gtk-4.1' 'gtk3' 'libayatana-appindicator' 'ffmpeg' 'rclone'
13 'gst-plugins-good' 'gst-libav' 'hicolor-icon-theme')
14makedepends=('cargo' 'nodejs' 'npm')
15provides=('snippit')
16conflicts=('snippit' 'snippit-bin')
17# rusqlite's bundled sqlite3 is compiled by gcc; -flto bitcode objects can't
18# be consumed by the Rust lld link step, so LTO must stay off.
19options=('!lto')
20source=("$pkgname::git+$url.git#branch=main"
21 "snippit.desktop")
22sha256sums=('SKIP'
23 '9a05c74e25b18ccdcdc1dc89cb0471a73203780fccea90a061d4b771c95f97a0')
24
25pkgver() {
26 cd "$pkgname"
27 git describe --long --abbrev=7 --tags \
28 | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
29}
30
31prepare() {
32 cd "$pkgname"
33
34 # Sidecar binaries are gitignored upstream (CI downloads them); on Arch the
35 # app resolves sidecars next to /usr/bin/snippit, so the system ffmpeg and
36 # rclone packages satisfy them. tauri-build only needs files present here.
37 mkdir -p src-tauri/binaries
38 ln -sf /usr/bin/ffmpeg src-tauri/binaries/ffmpeg-x86_64-unknown-linux-gnu
39 ln -sf /usr/bin/ffprobe src-tauri/binaries/ffprobe-x86_64-unknown-linux-gnu
40 ln -sf /usr/bin/rclone src-tauri/binaries/rclone-x86_64-unknown-linux-gnu
41
42 npm ci
43 cargo fetch --locked --target "$CARCH-unknown-linux-gnu" \
44 --manifest-path src-tauri/Cargo.toml
45}
46
47build() {
48 cd "$pkgname"
49 # Version stays whatever upstream's tauri.conf.json carries: the pkgver this
50 # package derives (1.2.2.r4.gf6f438c) is not a semver string, which Tauri
51 # rejects at config-parse time.
52 npm run tauri build -- --no-bundle
53}
54
55package() {
56 cd "$pkgname"
57
58 install -Dm755 src-tauri/target/release/snippit "$pkgdir/usr/bin/snippit"
59 install -Dm644 "$srcdir/snippit.desktop" \
60 "$pkgdir/usr/share/applications/snippit.desktop"
61
62 install -Dm644 src-tauri/icons/32x32.png \
63 "$pkgdir/usr/share/icons/hicolor/32x32/apps/snippit.png"
64 install -Dm644 src-tauri/icons/128x128.png \
65 "$pkgdir/usr/share/icons/hicolor/128x128/apps/snippit.png"
66 install -Dm644 src-tauri/icons/128x128@2x.png \
67 "$pkgdir/usr/share/icons/hicolor/256x256/apps/snippit.png"
68 install -Dm644 src-tauri/icons/icon.png \
69 "$pkgdir/usr/share/icons/hicolor/512x512/apps/snippit.png"
70}
71

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 20:05:31 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