| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 | 0/$(ver_cut 1-2) |
# 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
}
app-misc/jq gui-apps/grim gui-apps/slurp gui-apps/wl-clipboard gui-wm/hyprland x11-libs/libnotify