diff options
Diffstat (limited to 'x11-misc/selx/selx-1.0.0.ebuild')
-rw-r--r-- | x11-misc/selx/selx-1.0.0.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
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 +} |