commit: f2b1bde23474c9c7aa814da1ffd6b5b3884b0811 Author: NRK <nrk <AT> disroot <DOT> org> AuthorDate: Fri Feb 20 00:22:46 2026 +0000 Commit: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org> CommitDate: Fri Feb 20 00:22:46 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2b1bde2
media-gfx/sxot: new package Signed-off-by: NRK <nrk <AT> disroot.org> media-gfx/sxot/Manifest | 1 + media-gfx/sxot/metadata.xml | 11 +++++++++++ media-gfx/sxot/sxot-1.0.0.ebuild | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/media-gfx/sxot/Manifest b/media-gfx/sxot/Manifest new file mode 100644 index 0000000000..00eba2790f --- /dev/null +++ b/media-gfx/sxot/Manifest @@ -0,0 +1 @@ +DIST sxot-1.0.0.tar.gz 22641 BLAKE2B f08b29d3c7d8af1b8c3062416b7abd01012083054c5af7d01cd46efeaf0ed9bd979137a185001a67ac44bfc12da0b1f9027433af9b3afaeed84c32754187c734 SHA512 f5516730d9cbdae7de9bff15ef9bc80d78223838748c3421c141332d45dee4787bd82f9c9bc70ccbf6e8da6568d803b5a74efff0e277dbd421c541b13adda898 diff --git a/media-gfx/sxot/metadata.xml b/media-gfx/sxot/metadata.xml new file mode 100644 index 0000000000..fa7de4721f --- /dev/null +++ b/media-gfx/sxot/metadata.xml @@ -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>NRK</name> + </maintainer> + <upstream> + <remote-id type="codeberg">NRK/sxot</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/sxot/sxot-1.0.0.ebuild b/media-gfx/sxot/sxot-1.0.0.ebuild new file mode 100644 index 0000000000..f539d813b7 --- /dev/null +++ b/media-gfx/sxot/sxot-1.0.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs edo shell-completion optfeature + +DESCRIPTION="Minimal X11 screenshot tool" +HOMEPAGE="https://codeberg.org/NRK/sxot" +SRC_URI="https://codeberg.org/NRK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXfixes +" +DEPEND="${RDEPEND}" + +src_compile() { + edo $(tc-getCC) -o sxot sxot.c ${CFLAGS} ${LDFLAGS} -l X11 -l Xfixes +} + +src_install() { + dobin sxot + doman sxot.1 + dozshcomp etc/zsh-completion/_sxot +} + +pkg_postinst() { + optfeature "screenshotting off-screen window without a compositor" \ + x11-libs/libXcomposite +}
