# Copyright 2026 dimunyx Authors
# Distributed under the terms of the MIT license

EAPI=8

DESCRIPTION="Minimalistic fetch written in C++"
HOMEPAGE="https://github.com/dimunyx/dimfetch"
SRC_URI="https://raw.githubusercontent.com/dimunyx/dimfetch/main/archives/dimfetch-${PV}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	sys-devel/gcc
	dev-build/make
"

S="${WORKDIR}"

src_compile() {
	make build
}

src_install() {
	dobin dist/dimfetch
	insinto /usr/share/fish/vendor_completions.d
	doins "dimfetch.fish"
}