suckless-extra

A collection of gentoo ebuilds for suckless programs as well as their dependencies and setup scripts
git clone git://git.stellar-nexus.ru/suckless-extra
Log | Files | Refs

commit 671bf9b00e6e893eaf354c55a5b74ef703876285
parent 44793d5a382a851cbc59e9316fc893a333c34d32
Author: Plat <plat@stellar-nexus.ru>
Date:   Thu, 22 Aug 2024 18:36:40 +0000

Added x11-misc/sselp

Diffstat:
Ax11-misc/sselp/Manifest | 1+
Ax11-misc/sselp/metadata.xml | 11+++++++++++
Ax11-misc/sselp/sselp-0.2.ebuild | 36++++++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/x11-misc/sselp/Manifest b/x11-misc/sselp/Manifest @@ -0,0 +1 @@ +DIST sselp-0.2.tar.gz 2562 BLAKE2B e41b68931f7f386a57b13f08c4617fa84621bbd9ea7d8837adda3899ae06077e605382b1f58132afcb4ff24d9d55842c5012bf44970410db06ae0098c00a1e5a SHA512 f53163bd6bf257ef912d23dd813690a6a8700344bcc3caad73556917f12e76364b6ebc9bd11224fe8f4013d83518459440f113a313fc9721de2a124277270044 diff --git a/x11-misc/sselp/metadata.xml b/x11-misc/sselp/metadata.xml @@ -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>plat@stellar-nexus.ru</email> +<name>Plat</name> +</maintainer> +<longdescription> +sselp is a simple selection printing program. It prints X selection to standard out. +</longdescription> +</pkgmetadata> diff --git a/x11-misc/sselp/sselp-0.2.ebuild b/x11-misc/sselp/sselp-0.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="simple print selection" +HOMEPAGE="https://tools.suckless.org/x/sselp" +SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -i \ + -e "s/ -Os / /" \ + -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \ + -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \ + config.mk || die +} + +src_compile() { + emake CC="$(tc-getCC)" sselp +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}" install +}