blob: 1c3a8a837e755557f6e4e7117ae762597727abce (
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 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo desktop xdg
DESCRIPTION="A screenshot annotation tool inspired by Swappy and Flameshot."
HOMEPAGE="https://github.com/gabm/satty"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/gabm/Satty.git"
else
SRC_URI="
https://github.com/gabm/Satty/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
M_PN=Satty
S="${WORKDIR}/${M_PN}-${PV}"
KEYWORDS="~amd64"
fi
LICENSE="MPL-2.0"
SLOT="0"
RDEPEND="
virtual/rust
dev-libs/glib:2
media-libs/fontconfig
media-libs/libepoxy
media-libs/mesa[opengl]
media-libs/graphene
gui-libs/libadwaita
gui-libs/gtk:4
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/pango
"
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_unpack() {
if [[ "${PV}" == 9999 ]]; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
dodoc README.md
if use debug ; then
cd target/debug || die
else
cd target/release || die
fi
dobin satty
#Just add the icon and desktop file
doicon "${S}/assets/satty.svg"
domenu "${S}/satty.desktop"
}
|