diff --git a/sys-apps/fetchit/fetchit-20260510.ebuild b/sys-apps/fetchit/fetchit-20260510.ebuild index 12545ae4c2..c7a8897b52 100644 --- a/sys-apps/fetchit/fetchit-20260510.ebuild +++ b/sys-apps/fetchit/fetchit-20260510.ebuild @@ -10,7 +10,7 @@ HOMEPAGE="https://codeberg.org/nzuum/fetchit" COMMIT="b0ed7c1fe08d32fc26e458cd971930d550720462" SRC_URI="https://codeberg.org/nzuum/fetchit/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}" +S="${WORKDIR}/fetchit" LICENSE="MIT" SLOT="0" @@ -24,15 +24,23 @@ DEPEND="${RDEPEND}" src_compile() { emake \ CC="$(tc-getCC)" \ - CFLAGS="$(pkg-config --cflags lua) -I src" \ + CFLAGS="-I$(pkg-config --variable=includedir lua) -I src" \ LIBS="$(pkg-config --libs lua)" } src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install - + dobin build/fetchit dodoc README.md - insinto /usr/share/fetchit doins -r config/* +} + +pkg_postinst() { + elog "Fetchit requires a user configuration file." + elog "To get started, copy the default configuration:" + elog " mkdir -p ~/.config/fetchit" + elog " cp /usr/share/fetchit/init.lua ~/.config/fetchit/" + elog "You may also copy the logo directory:" + elog " cp -r /usr/share/fetchit/logos ~/.config/fetchit/" + elog "Edit ~/.config/fetchit/init.lua to customize your output." } \ No newline at end of file