summaryrefslogtreecommitdiff
path: root/gui-apps/hyprshot/hyprshot-1.3.0-r2.ebuild
blob: f5b5f15e547caf66dc46455d8b901d603a7ac696 (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
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit optfeature

DESCRIPTION="Utility to easily take screenshots in Hyprland using your mouse"
HOMEPAGE="https://github.com/Gustash/Hyprshot/"

if [[ ${PV} == *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/Gustash/Hyprshot.git"
else
	SRC_URI="https://github.com/Gustash/Hyprshot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
	S="${WORKDIR}"/Hyprshot-${PV}
fi

LICENSE="GPL-3"
SLOT="0/$(ver_cut 1-2)"

RDEPEND="
	app-misc/jq
	gui-apps/grim
	gui-apps/slurp
	gui-apps/wl-clipboard
	gui-wm/hyprland
	x11-libs/libnotify
"

src_install() {
	dobin hyprshot
	einstalldocs
}

pkg_postinst() {
	optfeature "Screen freezing with --freeze" gui-apps/hyprpicker
	optfeature "\$XDG_PICTURES_DIR detection" x11-misc/xdg-user-dirs
}