media-gfx/sxot - 1.0.0 (guru)

Search

Install

Install this version:

emerge -a =media-gfx/sxot-1.0.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-gfx/sxot-1.0.0

Or alternatively:

emerge --autounmask-write -a =media-gfx/sxot-1.0.0

Package Information

Description:
Minimal X11 screenshot tool
Homepage:
https://codeberg.org/NRK/sxot
License:
GPL-3+

Ebuild Details

Version EAPI Keywords Slot
1.0.0 8 ~amd64 0
View Raw Ebuild
# 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
}

Inherited Eclasses

edo

Dependencies

DEPEND

	x11-libs/libX11
	x11-libs/libXfixes

RDEPEND

	x11-libs/libX11
	x11-libs/libXfixes

Manifest for 1.0.0

Type File Size Source URLs
DIST sxot-1.0.0.tar.gz 22641 bytes https://codeberg.org/NRK/sxot/archive/v1.0.0.tar.gz