sys-apps/fetchit:

modified:   fetchit-20260510.ebuild

Signed-off-by: Theron York <theron.york@cloudnuke.org>

	modified:   fetchit-20260510.ebuild
This commit is contained in:
Theron York
2026-05-10 18:55:23 -05:00
parent 5ccea96dd6
commit b324f47771

View File

@@ -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/*
}