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

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Lava lamp simulation using metaballs in the terminal written in C"
HOMEPAGE="https://github.com/AngelJumbo/lavat"
SRC_URI="https://github.com/AngelJumbo/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

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

src_compile() {
	emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}"
}

src_install() {
	emake PREFIX="${ED}/usr" install
	dodoc README.md
}