gui-apps/hyprshot: optional deps install

Signed-off-by: Michael Zavertkin <misha.zavertkin@mail.ru>
This commit is contained in:
Michael Zavertkin
2024-09-06 00:35:01 +07:00
parent 8c4aab66f7
commit 22431298ef
4 changed files with 17 additions and 15 deletions

View File

@@ -14,6 +14,8 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+xdg"
RDEPEND="
app-misc/jq
app-shells/bash
@@ -22,13 +24,10 @@ RDEPEND="
gui-apps/wl-clipboard
gui-wm/hyprland
x11-libs/libnotify
xdg? ( x11-misc/xdg-user-dirs )
"
src_install() {
dobin hyprshot
einstalldocs
}
pkg_postinst() {
optfeature "XDG user dir support" x11-misc/xdg-user-dirs
}

View File

@@ -14,6 +14,8 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+xdg +freeze"
RDEPEND="
app-misc/jq
app-shells/bash
@@ -22,15 +24,11 @@ RDEPEND="
gui-apps/wl-clipboard
gui-wm/hyprland
x11-libs/libnotify
xdg? ( x11-misc/xdg-user-dirs )
freeze? ( gui-apps/hyprpicker )
"
src_install() {
dobin hyprshot
einstalldocs
}
pkg_postinst() {
optfeature "--freeze option support" gui-apps/hyprpicker
optfeature "XDG user dir support" x11-misc/xdg-user-dirs
}

View File

@@ -11,6 +11,8 @@ EGIT_REPO_URI="https://github.com/Gustash/Hyprshot.git/"
LICENSE="GPL-3"
SLOT="0"
IUSE="+xdg +freeze"
RDEPEND="
app-misc/jq
app-shells/bash
@@ -19,14 +21,11 @@ RDEPEND="
gui-apps/wl-clipboard
gui-wm/hyprland
x11-libs/libnotify
xdg? ( x11-misc/xdg-user-dirs )
freeze? ( gui-apps/hyprpicker )
"
src_install() {
dobin hyprshot
einstalldocs
}
pkg_postinst() {
optfeature "--freeze option support" gui-apps/hyprpicker
optfeature "XDG user dir support" x11-misc/xdg-user-dirs
}

View File

@@ -8,4 +8,10 @@
<upstream>
<remote-id type="github">Gustash/Hyprshot</remote-id>
</upstream>
<use>
<flag name="xdg">Pull xdg-home as a dependency to use $XDG_PICTURES_DIR</flag>
</use>
<use>
<flag name="freeze">Pull gui-apps/hyprpicker for optional freezing screen</flag>
</use>
</pkgmetadata>