diff --git a/sys-apps/fetchit/fetchit-20260510.ebuild b/sys-apps/fetchit/fetchit-20260510.ebuild index 1ea3f62b59..12545ae4c2 100644 --- a/sys-apps/fetchit/fetchit-20260510.ebuild +++ b/sys-apps/fetchit/fetchit-20260510.ebuild @@ -1,37 +1,38 @@ - -# Copyright 2026 Gentoo Authors - -# Distributed under the terms of the GNU General Public License v2 - EAPI=8 + +LUA_COMPAT=( lua5-4 ) + +inherit lua-single toolchain-funcs + DESCRIPTION="Minimal system info fetcher written in C with Lua configuration" HOMEPAGE="https://codeberg.org/nzuum/fetchit" COMMIT="b0ed7c1fe08d32fc26e458cd971930d550720462" SRC_URI="https://codeberg.org/nzuum/fetchit/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/fetchit-${COMMIT}" +S="${WORKDIR}/${PN}" + LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -RDEPEND="dev-lang/lua:5.4" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS}" DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" + src_compile() { -emake || die + emake \ + CC="$(tc-getCC)" \ + CFLAGS="$(pkg-config --cflags lua) -I src" \ + LIBS="$(pkg-config --libs lua)" } + src_install() { -emake DESTDIR="${D}" PREFIX="/usr" install || die -dodoc README.md + emake DESTDIR="${D}" PREFIX="/usr" install -# Install default config and logos + dodoc README.md -insinto /usr/share/fetchit -doins -r config/* -} -pkg_postinst() { -elog "Default config installed to /usr/share/fetchit" -elog "Run the following to set it up for your user:" -elog " mkdir -p ~/.config/fetchit" -elog " cp -r /usr/share/fetchit/* ~/.config/fetchit/" -} + insinto /usr/share/fetchit + doins -r config/* +} \ No newline at end of file