diff --git a/sys-apps/fetchit/fetchit-0.1.0.ebuild b/sys-apps/fetchit/fetchit-0.1.0.ebuild index 47af882c3a..1ea3f62b59 100644 --- a/sys-apps/fetchit/fetchit-0.1.0.ebuild +++ b/sys-apps/fetchit/fetchit-0.1.0.ebuild @@ -1,42 +1,37 @@ + # Copyright 2026 Gentoo Authors + # Distributed under the terms of the GNU General Public License v2 EAPI=8 - DESCRIPTION="Minimal system info fetcher written in C with Lua configuration" HOMEPAGE="https://codeberg.org/nzuum/fetchit" -# Using a recent commit (update this when you want a newer version) COMMIT="b0ed7c1fe08d32fc26e458cd971930d550720462" SRC_URI="https://codeberg.org/nzuum/fetchit/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/fetchit-${COMMIT}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" - RDEPEND="dev-lang/lua:5.4" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" - -S="${WORKDIR}/fetchit-${COMMIT}" - src_compile() { - emake || die +emake || die } - src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install || die +emake DESTDIR="${D}" PREFIX="/usr" install || die +dodoc README.md - dodoc README.md +# Install default config and logos - # Install default config and logos - insinto /usr/share/fetchit - doins -r config/* +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/" -} \ No newline at end of file +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/" +} diff --git a/sys-apps/fetchit/fetchit-9999.ebuild b/sys-apps/fetchit/fetchit-9999.ebuild index 337200200d..b938f3a041 100644 --- a/sys-apps/fetchit/fetchit-9999.ebuild +++ b/sys-apps/fetchit/fetchit-9999.ebuild @@ -5,8 +5,8 @@ EAPI=8 DESCRIPTION="Minimal system info fetcher written in C with Lua configuration" HOMEPAGE="https://codeberg.org/nzuum/fetchit" -EGIT_REPO_URI="https://codeberg.org/nzuum/fetchit.git" +EGIT_REPO_URI="https://codeberg.org/nzuum/fetchit.git" inherit git-r3 LICENSE="MIT" @@ -18,25 +18,24 @@ DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" src_compile() { - emake || die + emake || die } src_install() { - # Makefile now respects DESTDIR + PREFIX (recent commit) - emake DESTDIR="${D}" PREFIX="/usr" install || die + # Makefile now respects DESTDIR + PREFIX (recent commit) + emake DESTDIR="${D}" PREFIX="/usr" install || die + dodoc README.md - dodoc README.md - - # Install default config and logos - insinto /usr/share/fetchit - doins -r config/* + # Install default config and logos + insinto /usr/share/fetchit + doins -r config/* } pkg_postinst() { - elog "Default config and logos have been installed to /usr/share/fetchit" - elog "To set them up for your user, run:" - elog " make install-config" - elog "or copy manually:" - elog " mkdir -p ~/.config/fetchit" - elog " cp -r /usr/share/fetchit/* ~/.config/fetchit/" -} \ No newline at end of file + elog "Default config and logos have been installed to /usr/share/fetchit" + elog "To set them up for your user, run:" + elog " make install-config" + elog "or copy manually:" + elog " mkdir -p ~/.config/fetchit" + elog " cp -r /usr/share/fetchit/* ~/.config/fetchit/" +}