flowshot-git
LOW
maintainer sTiKyt
1 votes
scanned 2026-10-17 13:18:05.291310
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: FlowOSS <https://github.com/FlowOSS>
2
pkgname=flowshot-git
3
_pkgname=flowshot
4
pkgver=0.4.0.r2.g747d504
5
pkgrel=1
6
pkgdesc='Screenshot and annotation tool for Wayland and X11 with mixed-DPI support'
7
arch=('x86_64')
8
url='https://github.com/FlowOSS/flowshot'
9
license=('GPL-3.0-or-later')
10
depends=(
11
'glibc'
12
'libgcc'
13
'libpipewire-0.3.so'
14
# dlopen'd or data-only: real runtime deps, namcap warnings are false positives
15
'wayland'
16
'vulkan-icd-loader'
17
'fontconfig'
18
'ttf-font'
19
'hicolor-icon-theme'
20
)
21
makedepends=(
22
'cargo'
23
'mold'
24
'clang'
25
'desktop-file-utils'
26
'git'
27
'librsvg'
28
'pipewire'
29
'pkgconf'
30
)
31
optdepends=(
32
'xdg-desktop-portal: portal capture, global shortcuts and OpenURI'
33
'xdg-desktop-portal-gnome: portal backend for GNOME'
34
'xdg-desktop-portal-kde: portal backend for KDE Plasma (KWin ScreenShot2)'
35
'xdg-desktop-portal-hyprland: portal backend for Hyprland'
36
'xdg-desktop-portal-wlr: portal backend for wlroots compositors (Sway)'
37
'vulkan-driver: Vulkan implementation for the GPU-accelerated overlay'
38
'gnome-shell-extension-appindicator: system tray icon under GNOME'
39
)
40
checkdepends=('ttf-dejavu')
41
provides=("flowshot=$pkgver")
42
conflicts=('flowshot')
43
source=("$_pkgname::git+$url.git")
44
b2sums=('SKIP')
45
options=('!lto')
46
47
pkgver() {
48
cd "$_pkgname"
49
(
50
set -o pipefail
51
git describe --long --tags --abbrev=7 2>/dev/null |
52
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
53
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
54
)
55
}
56
57
prepare() {
58
cd "$_pkgname"
59
cargo fetch --locked --target "$(rustc --print host-tuple)"
60
}
61
62
build() {
63
cd "$_pkgname"
64
export CARGO_TARGET_DIR=target
65
export CARGO_PROFILE_RELEASE_LTO=thin
66
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
67
export CARGO_PROFILE_RELEASE_DEBUG=false
68
cargo build --release --frozen --bin flowshot --bin flowshot-daemon
69
cargo build --release --frozen -p flowshot-cli --example man_pages
70
}
71
72
check() {
73
cd "$_pkgname"
74
export CARGO_TARGET_DIR=target
75
cargo test --frozen --workspace
76
}
77
78
package() {
79
cd "$_pkgname"
80
81
# keep the fakeroot build log clean (CLI config-load warning)
82
export RUST_LOG=error
83
84
install -Dm0755 target/release/flowshot "$pkgdir/usr/bin/flowshot"
85
install -Dm0755 target/release/flowshot-daemon "$pkgdir/usr/bin/flowshot-daemon"
86
87
install -Dm0644 packaging/flowshot.desktop.in \
88
"$pkgdir/usr/share/applications/org.flowoss.FlowShot.desktop"
89
desktop-file-validate "$pkgdir/usr/share/applications/org.flowoss.FlowShot.desktop"
90
91
install -Dm0644 assets/logo.svg \
92
"$pkgdir/usr/share/icons/hicolor/scalable/apps/org.flowoss.FlowShot.svg"
93
local size
94
for size in 48 64 128 256 512; do
95
install -dm0755 "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps"
96
rsvg-convert -w "$size" -h "$size" assets/logo.svg \
97
-o "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/org.flowoss.FlowShot.png"
98
done
99
100
./target/release/examples/man_pages "$srcdir/man"
101
install -dm0755 "$pkgdir/usr/share/man/man1" "$pkgdir/usr/share/man/man5"
102
install -m0644 "$srcdir"/man/*.1 -t "$pkgdir/usr/share/man/man1/"
103
install -m0644 "$srcdir"/man/*.5 -t "$pkgdir/usr/share/man/man5/"
104
105
install -dm0755 \
106
"$pkgdir/usr/share/bash-completion/completions" \
107
"$pkgdir/usr/share/zsh/site-functions" \
108
"$pkgdir/usr/share/fish/vendor_completions.d" \
109
"$pkgdir/usr/share/elvish/lib"
110
# Standard Arch completion paths (bash no extension, zsh _-prefixed, fish
111
# vendor_completions.d, elvish lib). pwsh/nushell have no Arch convention.
112
./target/release/flowshot completions bash \
113
> "$pkgdir/usr/share/bash-completion/completions/flowshot"
114
./target/release/flowshot completions zsh \
115
> "$pkgdir/usr/share/zsh/site-functions/_flowshot"
116
./target/release/flowshot completions fish \
117
> "$pkgdir/usr/share/fish/vendor_completions.d/flowshot.fish"
118
./target/release/flowshot completions elvish \
119
> "$pkgdir/usr/share/elvish/lib/flowshot.elv"
120
121
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
122
install -Dm0644 NOTICES "$pkgdir/usr/share/licenses/$pkgname/NOTICES"
123
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" \
124
README.md docs/config-reference.md docs/dbus-api.md
125
}
126
Changes since previous scan
--- PKGBUILD @ 2026-10-15 00:28+++ PKGBUILD @ 2026-10-17 13:18@@ -1,7 +1,7 @@ # Maintainer: FlowOSS <https://github.com/FlowOSS> pkgname=flowshot-git _pkgname=flowshot-pkgver=0.3.3.r0.g6329702+pkgver=0.4.0.r2.g747d504 pkgrel=1 pkgdesc='Screenshot and annotation tool for Wayland and X11 with mixed-DPI support' arch=('x86_64')Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-17 13:18:05 | Low | 1 |
| 2026-10-15 00:28:05 | Clean | 2 |
| 2026-10-14 19:20:25 | Low | 1 |
| 2026-10-14 00:06:47 | Clean | 2 |
| 2026-10-13 17:17:20 | Low | 1 |
| 2026-10-13 00:23:45 | Clean | 2 |
| 2026-10-12 05:12:20 | Low | 1 |
| 2026-10-12 03:12:20 | Low | 1 |
| 2026-10-12 01:11:47 | Low | 1 |
| 2026-10-12 00:18:51 | Clean | 2 |
| 2026-10-11 23:11:19 | Low | 1 |
| 2026-10-11 00:26:05 | Clean | 2 |
| 2026-10-10 08:13:38 | Low | 1 |
| 2026-10-10 04:12:59 | Low | 1 |