From 8a1016723f89524bab873800767bb75e67ea71b1 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 16 Feb 2024 08:51:01 +0000 Subject: x11-misc/selx: new package Signed-off-by: NRK --- x11-misc/selx/Manifest | 1 + x11-misc/selx/metadata.xml | 11 +++++++++++ x11-misc/selx/selx-1.0.0.ebuild | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 x11-misc/selx/Manifest create mode 100644 x11-misc/selx/metadata.xml create mode 100644 x11-misc/selx/selx-1.0.0.ebuild (limited to 'x11-misc') diff --git a/x11-misc/selx/Manifest b/x11-misc/selx/Manifest new file mode 100644 index 000000000..1721537ad --- /dev/null +++ b/x11-misc/selx/Manifest @@ -0,0 +1 @@ +DIST selx-1.0.0.tar.gz 21423 BLAKE2B af7480e8ea5bfef8027c52acb6c0230888510abba31d117d650c8047c2f9fd680e5a2d2abec345048969957701e2bc14faf6e1396aac0e7f9e641ca6d4ae55e9 SHA512 4368f29731d81a3c91ac09093b6e721d850057900e21efea85ebbc29f851a7fd9b450d3ba7045e044ff0b6a87da1dc1d75f4e73b4dadbc7902192e0b4c753deb diff --git a/x11-misc/selx/metadata.xml b/x11-misc/selx/metadata.xml new file mode 100644 index 000000000..fc3e50bea --- /dev/null +++ b/x11-misc/selx/metadata.xml @@ -0,0 +1,11 @@ + + + + + nrk@disroot.org + NRK + + + NRK/selx + + diff --git a/x11-misc/selx/selx-1.0.0.ebuild b/x11-misc/selx/selx-1.0.0.ebuild new file mode 100644 index 000000000..062d43518 --- /dev/null +++ b/x11-misc/selx/selx-1.0.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Minimal X11 rectangle selection tool" +HOMEPAGE="https://codeberg.org/NRK/selx" + +SRC_URI="https://codeberg.org/NRK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}" + +KEYWORDS="~amd64" +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext +" +# NOTE: next version also depends on: +# x11-libs/libXrandr +DEPEND="${RDEPEND}" + +src_compile() { + $(tc-getCC) -o selx selx.c ${CFLAGS} ${LDFLAGS} -l X11 -l Xext || die "Compilation failed" +} + +src_install() { + dobin selx + doman selx.1 +} -- cgit v1.2.3-65-gdbad