x11-misc/selx: new package

Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
NRK
2024-02-16 08:51:01 +00:00
parent 78af812b2f
commit 8a1016723f
3 changed files with 45 additions and 0 deletions

1
x11-misc/selx/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST selx-1.0.0.tar.gz 21423 BLAKE2B af7480e8ea5bfef8027c52acb6c0230888510abba31d117d650c8047c2f9fd680e5a2d2abec345048969957701e2bc14faf6e1396aac0e7f9e641ca6d4ae55e9 SHA512 4368f29731d81a3c91ac09093b6e721d850057900e21efea85ebbc29f851a7fd9b450d3ba7045e044ff0b6a87da1dc1d75f4e73b4dadbc7902192e0b4c753deb

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/selx</remote-id>
</upstream>
</pkgmetadata>

View File

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