blob: 480ffff8103535c5d9d560ad9b76a87a3912fa31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2
require cmake
SUMMARY="Powerful yet simple to use screenshot software"
HOMEPAGE="https://flameshot.org https://github.com/flameshot-org/flameshot"
DOWNLOADS="
https://github.com/flameshot-org/flameshot/archive/refs/tags/v${PV}.tar.gz
-> ${PNV}.tar.gz
"
LICENCES="
Apache-2.0
FAL-1.3
GPL-3+
"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="
imgur [[
description = [ Enable Imgur uploader ]
]]
wayland [[
description = [ Enable Wayland clipboard support ]
]]
"
DEPENDENCIES="
build:
x11-libs/qttools:6[linguist]
build+run:
dev-libs/kdsingleapplication
gui-libs/qt-color-widgets
sys-apps/dbus
x11-libs/qtbase:6[gui]
x11-libs/qtsvg:6
wayland? (
kde-frameworks/kguiaddons:6[wayland]
)
"
src_configure() {
CMAKE_SRC_CONFIGURE_PARAMS=(
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-DDISABLE_UPDATE_CHECKER=ON
-DENABLE_CACHE=0
-DENABLE_IMGUR="$(option imgur ON OFF)"
-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS
-DUSE_BUNDLED_KDSINGLEAPPLICATION=OFF
-DUSE_KDSINGLEAPPLICATION=ON
-DUSE_WAYLAND_CLIPBOARD="$(option wayland ON OFF)"
)
cmake_src_configure
}
src_install() {
cmake_src_install
}
|