latchshot-git
LOW
maintainer mzwing
0 votes
scanned 2026-08-23 17:21:15.843281
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: mzwing <mzwing@mzwing.eu.org>
2
3
pkgname=latchshot-git
4
pkgver=0.2.5.r2.gff5e13e
5
pkgrel=2
6
pkgdesc='A lightweight yet intelligent window-aware screenshot tool for Wayland'
7
arch=('x86_64')
8
url='https://github.com/so1ve/latchshot'
9
license=('MIT')
10
makedepends=('git' 'cargo')
11
depends=('gcc-libs' 'glibc' 'libxkbcommon' 'wayland' 'wl-clipboard')
12
provides=("latchshot=$pkgver")
13
conflicts=('latchshot' 'latchshot-bin')
14
source=("$pkgname::git+$url.git")
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd "$pkgname"
19
(
20
set -o pipefail
21
git describe --long --abbrev=7 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
22
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
23
)
24
}
25
26
prepare() {
27
cd "$pkgname"
28
export RUSTUP_TOOLCHAIN=stable
29
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
30
}
31
32
build() {
33
cd "$pkgname"
34
export RUSTUP_TOOLCHAIN=stable
35
export CARGO_TARGET_DIR=target
36
cargo build --frozen --release
37
}
38
39
check() {
40
cd "$pkgname"
41
export RUSTUP_TOOLCHAIN=stable
42
export CARGO_TARGET_DIR=target
43
cargo test --frozen --release
44
}
45
46
package() {
47
cd "$pkgname"
48
install -Dm755 target/release/latchshot -t "$pkgdir/usr/bin/"
49
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
50
}
51
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-23 17:21:15 | Low | 1 |