squoosh-desktop
LOW
maintainer huntergunter89
1 votes
scanned 2026-09-25 11:11:47.608437
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: huntergunter89 <huntergunter89@gmail.com>
2
pkgname=squoosh-desktop
3
pkgver=0.1.1
4
pkgrel=1
5
pkgdesc='Local image compressor and converter, a native port of Squoosh written in Rust'
6
arch=('x86_64')
7
url='https://github.com/hunter-gunter/squoosh-desktop'
8
license=('GPL-3.0-or-later' 'Apache-2.0')
9
depends=('glibc' 'gcc-libs' 'libwebp' 'libavif' 'lcms2' 'libxkbcommon' 'libxkbcommon-x11' 'libx11' 'libxcb' 'libglvnd' 'wayland' 'hicolor-icon-theme')
10
makedepends=('cargo' 'nasm' 'pkgconf')
11
optdepends=('xdg-desktop-portal: native file dialogs'
12
'xdg-desktop-portal-gtk: file chooser portal for GTK desktops'
13
'xdg-desktop-portal-kde: file chooser portal for KDE Plasma')
14
# Cargo applies its own ThinLTO; makepkg's linker-plugin LTO drops bundled C objects.
15
# The release profile strips the binary, so a debug package would be empty.
16
options=('!lto' '!debug')
17
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18
sha256sums=('f1ed2448d85ee4658304b335cddae9f4c4685f108788f1134ed1b1592e165531')
19
20
prepare() {
21
cd "$pkgname-$pkgver"
22
export RUSTUP_TOOLCHAIN=stable
23
cargo fetch --locked --target "$(rustc --print host-tuple)"
24
}
25
26
build() {
27
cd "$pkgname-$pkgver"
28
export RUSTUP_TOOLCHAIN=stable
29
export CARGO_TARGET_DIR=target
30
cargo build --frozen --release -p squoosh-desktop
31
}
32
33
check() {
34
cd "$pkgname-$pkgver"
35
export RUSTUP_TOOLCHAIN=stable
36
export CARGO_TARGET_DIR=target
37
cargo test --frozen --workspace
38
}
39
40
package() {
41
cd "$pkgname-$pkgver"
42
install -Dm755 target/release/squoosh-desktop -t "$pkgdir/usr/bin"
43
install -Dm644 packaging/squoosh-desktop.desktop -t "$pkgdir/usr/share/applications"
44
install -Dm644 app/assets/icon.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/squoosh-desktop.png"
45
install -Dm644 README.md THIRD_PARTY.md CHANGELOG.md -t "$pkgdir/usr/share/doc/$pkgname"
46
install -Dm644 LICENSE LICENSE-APACHE-2.0 -t "$pkgdir/usr/share/licenses/$pkgname"
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 11:11:47 | Low | 1 |