diff options
author | Emily Mills <emily@emlove.me> | 2020-12-14 11:52:20 -0600 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-04 08:00:59 +0200 |
commit | e41796ba608f0e9c578acdd20a733d7082b4a775 (patch) | |
tree | 57f7bf4e0018808777744248ee396ca3757b4a16 /gui-apps/swappy/swappy-9999.ebuild | |
parent | net-p2p/eiskaltdcpp: Bump to 2.4.2 (diff) | |
download | gentoo-e41796ba608f0e9c578acdd20a733d7082b4a775.tar.gz gentoo-e41796ba608f0e9c578acdd20a733d7082b4a775.tar.bz2 gentoo-e41796ba608f0e9c578acdd20a733d7082b4a775.zip |
gui-apps/swappy: Wayland native snapshot tool
Allows editing and modifying snapshots along with support for other
native wayland tools like grim and wl-clipboard
Signed-off-by: Emily Mills <emily@emlove.me>
Closes: https://github.com/gentoo/gentoo/pull/18652
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'gui-apps/swappy/swappy-9999.ebuild')
-rw-r--r-- | gui-apps/swappy/swappy-9999.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gui-apps/swappy/swappy-9999.ebuild b/gui-apps/swappy/swappy-9999.ebuild new file mode 100644 index 000000000000..42287fc7bf8c --- /dev/null +++ b/gui-apps/swappy/swappy-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson xdg optfeature + +DESCRIPTION="A Wayland native snapshot and editor tool, inspired by Snappy on macOS" +HOMEPAGE="https://github.com/jtheoof/swappy" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/jtheoof/swappy" +else + SRC_URI="https://github.com/jtheoof/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +DEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + x11-libs/cairo + x11-libs/pango +" +RDEPEND="${DEPEND} + media-fonts/fontawesome[otf] +" +BDEPEND=" + virtual/pkgconfig + app-text/scdoc +" + +src_prepare() { + eapply_user + + # See https://github.com/jtheoof/swappy/pull/99 + sed -i -e 's/Utility;Graphics;Annotation;/Utility;Graphics;/' src/po/swappy.desktop.in || die "Sed failed!" +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "persisting clipboard after closing" gui-apps/wl-clipboard +} + +pkg_postrm() { + xdg_pkg_postrm +} |