# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 toolchain-funcs

DESCRIPTION="A fetcher written in C"
HOMEPAGE="https://gitbtw.com/fordon_greeman/sfetch"
EGIT_REPO_URI="https://gitbtw.com/fordon_greeman/sfetch.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""

src_compile() {
	emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "Failed to compile sfetch"
}

src_install() {
	emake DEST="${ED}/usr/bin" install || die "Failed to install sfetch"
}