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

sselp-0.2.ebuild (737B)


      1 # Copyright 2024 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=8
      5 
      6 inherit toolchain-funcs
      7 
      8 DESCRIPTION="simple print selection"
      9 HOMEPAGE="https://tools.suckless.org/x/sselp"
     10 SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
     11 
     12 LICENSE="MIT"
     13 SLOT="0"
     14 KEYWORDS="~amd64"
     15 
     16 DEPEND="x11-libs/libX11"
     17 RDEPEND="${DEPEND}"
     18 
     19 src_prepare() {
     20 	default
     21 
     22 	sed -i \
     23 		-e "s/ -Os / /" \
     24 		-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
     25 		-e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \
     26 		-e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \
     27 		config.mk || die
     28 }
     29 
     30 src_compile() {
     31 	emake CC="$(tc-getCC)" sselp
     32 }
     33 
     34 src_install() {
     35 	emake DESTDIR="${D}" PREFIX="${EPREFIX}" install
     36 }