media-gfx/sxot: new package

Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
NRK
2026-02-20 00:22:46 +00:00
parent df64cb0965
commit f2b1bde234
3 changed files with 49 additions and 0 deletions

1
media-gfx/sxot/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST sxot-1.0.0.tar.gz 22641 BLAKE2B f08b29d3c7d8af1b8c3062416b7abd01012083054c5af7d01cd46efeaf0ed9bd979137a185001a67ac44bfc12da0b1f9027433af9b3afaeed84c32754187c734 SHA512 f5516730d9cbdae7de9bff15ef9bc80d78223838748c3421c141332d45dee4787bd82f9c9bc70ccbf6e8da6568d803b5a74efff0e277dbd421c541b13adda898

View File

@@ -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>nrk@disroot.org</email>
<name>NRK</name>
</maintainer>
<upstream>
<remote-id type="codeberg">NRK/sxot</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}