mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
sys-apps/fetchit: Fixed the live ebuild
It was failing to compile it should compile now Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
@@ -3,11 +3,12 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
|
inherit git-r3 toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="Minimal system info fetcher written in C with Lua configuration"
|
DESCRIPTION="Minimal system info fetcher written in C with Lua configuration"
|
||||||
HOMEPAGE="https://codeberg.org/nzuum/fetchit"
|
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"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
@@ -15,18 +16,20 @@ KEYWORDS=""
|
|||||||
|
|
||||||
RDEPEND="dev-lang/lua:5.4"
|
RDEPEND="dev-lang/lua:5.4"
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND=""
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake || die
|
emake \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CFLAGS="${CFLAGS} -I/usr/include/lua5.4 -I src" \
|
||||||
|
LIBS="-llua5.4" \
|
||||||
|
|| die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
# Makefile now respects DESTDIR + PREFIX (recent commit)
|
dobin build/fetchit
|
||||||
emake DESTDIR="${D}" PREFIX="/usr" install || die
|
|
||||||
dodoc README.md
|
dodoc README.md
|
||||||
|
|
||||||
# Install default config and logos
|
|
||||||
insinto /usr/share/fetchit
|
insinto /usr/share/fetchit
|
||||||
doins -r config/*
|
doins -r config/*
|
||||||
}
|
}
|
||||||
@@ -34,8 +37,6 @@ src_install() {
|
|||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
elog "Default config and logos have been installed to /usr/share/fetchit"
|
elog "Default config and logos have been installed to /usr/share/fetchit"
|
||||||
elog "To set them up for your user, run:"
|
elog "To set them up for your user, run:"
|
||||||
elog " make install-config"
|
|
||||||
elog "or copy manually:"
|
|
||||||
elog " mkdir -p ~/.config/fetchit"
|
elog " mkdir -p ~/.config/fetchit"
|
||||||
elog " cp -r /usr/share/fetchit/* ~/.config/fetchit/"
|
elog " cp -r /usr/share/fetchit/* ~/.config/fetchit/"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user