Skip to content

Commit

Permalink
gui-apps/hyprshot: new package
Browse files Browse the repository at this point in the history
Signed-off-by: Misha Zavertkin <[email protected]>
Closes: #198
Signed-off-by: Lucio Sauer <[email protected]>
  • Loading branch information
ProMix0 authored and antecrescent committed Jul 3, 2024
1 parent 1f6c86e commit a0dba1e
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui-apps/hyprshot/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST hyprshot-1.2.3.tar.gz 15657 BLAKE2B a0fbe1e795e63536e7e184863299272535010ab666ab3adfbd4bdd6df9aee58580161772d2fca57c7779e2f7c5db48626ed69f1f2b55c9f20f0d336c6cdd7780 SHA512 f4f762e1063c5374dd1a9bfc697b9578be7d2a625cbb95224cc1b54142290ae466adc85eb0a6bd7eba81d3228a592bd8b1a5f9d34a407efa14378d668fa525da
DIST hyprshot-1.3.0.tar.gz 16381 BLAKE2B 90711199532c8ae5618ce0228602fb7993556b1a7f2e6fc5baa1e49da81ec1e8e365550c2b4fcbc676e90cdc9ae9244ed1a356641160bd09f42affccb1c08378 SHA512 2177a8de11a728db19156217451f801af22cea6a127ad5629e6dac802c95474175e57c2284c0296814a0202e63bb4ca42a0b8101a67905918f3e198b3ea35598
34 changes: 34 additions & 0 deletions gui-apps/hyprshot/hyprshot-1.2.3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit optfeature

DESCRIPTION="Hyprshot is a utility to easily take screenshot in Hyprland using your mouse"
HOMEPAGE="https://github.com/Gustash/Hyprshot/"
SRC_URI="https://github.com/Gustash/Hyprshot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}"/Hyprshot-${PV}

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

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

src_install() {
dobin hyprshot
einstalldocs
}

pkg_postinst() {
optfeature "XDG user dir support" x11-misc/xdg-user-dirs
}
36 changes: 36 additions & 0 deletions gui-apps/hyprshot/hyprshot-1.3.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit optfeature

DESCRIPTION="Hyprshot is a utility to easily take screenshot in Hyprland using your mouse"
HOMEPAGE="https://github.com/Gustash/Hyprshot/"
SRC_URI="https://github.com/Gustash/Hyprshot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}"/Hyprshot-${PV}

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

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

src_install() {
dobin hyprshot
einstalldocs
}

pkg_postinst() {
optfeature "--freeze option support" gui-apps/hyprpicker
optfeature "XDG user dir support" x11-misc/xdg-user-dirs

}
32 changes: 32 additions & 0 deletions gui-apps/hyprshot/hyprshot-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit git-r3 optfeature

DESCRIPTION="Hyprshot is an utility to easily take screenshot in Hyprland using your mouse"
HOMEPAGE="https://github.com/Gustash/Hyprshot/"
EGIT_REPO_URI="https://github.com/Gustash/Hyprshot.git/"

LICENSE="GPL-3"
SLOT="0"

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

src_install() {
dobin hyprshot
einstalldocs
}

pkg_postinst() {
optfeature "--freeze option support" gui-apps/hyprpicker
optfeature "XDG user dir support" x11-misc/xdg-user-dirs
}
11 changes: 11 additions & 0 deletions gui-apps/hyprshot/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Misha Zavertkin</name>
</maintainer>
<upstream>
<remote-id type="github">Gustash/Hyprshot</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit a0dba1e

Please sign in to comment.