cosmic-viewer-git
LOW
maintainer LiamillionSS
0 votes
scanned 2026-08-23 21:21:38.325556
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: LiamillionSS <liamillion-dev at protonmail dot com>
2
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
3
pkgname=cosmic-viewer-git
4
pkgver=r155.6c999eb
5
pkgrel=1
6
pkgdesc="An image viewer for the COSMIC desktop environment."
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/pop-os/cosmic-viewer"
9
license=('GPL-3.0-only')
10
depends=(
11
'hicolor-icon-theme'
12
'libxkbcommon'
13
'libheif'
14
'libjpeg-turbo'
15
)
16
makedepends=(
17
'cargo'
18
'cmake'
19
'desktop-file-utils'
20
'git'
21
'just'
22
'mold'
23
'libheif'
24
'libjpeg-turbo'
25
'nasm'
26
)
27
provides=("${pkgname%-git}")
28
conflicts=("${pkgname%-git}")
29
source=('git+https://github.com/pop-os/cosmic-viewer.git')
30
sha256sums=('SKIP')
31
32
pkgver() {
33
cd "${pkgname%-git}"
34
( set -o pipefail
35
git describe --long --tags --abbrev=7 | sed 's/^epoch-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
36
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
37
)
38
}
39
40
prepare() {
41
cd "${pkgname%-git}"
42
export RUSTUP_TOOLCHAIN=stable
43
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
44
}
45
46
build() {
47
cd "${pkgname%-git}"
48
export RUSTUP_TOOLCHAIN=stable
49
50
# use mold instead of lld to speed up build
51
RUSTFLAGS+=" -C link-arg=-fuse-ld=mold"
52
53
# use nice to build with lower priority
54
nice just build-release --frozen
55
}
56
57
package() {
58
cd "${pkgname%-git}"
59
just rootdir="$pkgdir" install
60
}
61
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-23 21:21:38 | Low | 1 |