mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
Added new package fetchit
Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
1
sys-apps/fetchit/Manifest
Normal file
1
sys-apps/fetchit/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST fetchit-0.1.0.tar.gz 39448 BLAKE2B 8979d1a3f9ac8837194817e54e6d22ed54fd84d22f0d6f399b734858d2536904f08c327f1cc57296dff7fbd92914dfbcadbced2708795f9311e682bc3df79590 SHA512 5654cfb30f1656790b9b3d140829c2a88f357f7001ca373deb82718f1cb7e77fc8a05b64423ebf0a9496b2a21d606734619ffb1260fe791147b8bb17d2ec1c85
|
||||
42
sys-apps/fetchit/fetchit-0.1.0.ebuild
Normal file
42
sys-apps/fetchit/fetchit-0.1.0.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="/usr" install || die
|
||||
|
||||
dodoc README.md
|
||||
|
||||
# Install default config and logos
|
||||
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/"
|
||||
}
|
||||
42
sys-apps/fetchit/fetchit-9999.ebuild
Normal file
42
sys-apps/fetchit/fetchit-9999.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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"
|
||||
EGIT_REPO_URI="https://codeberg.org/nzuum/fetchit.git"
|
||||
|
||||
inherit git-r3
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
RDEPEND="dev-lang/lua:5.4"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Makefile now respects DESTDIR + PREFIX (recent commit)
|
||||
emake DESTDIR="${D}" PREFIX="/usr" install || die
|
||||
|
||||
dodoc README.md
|
||||
|
||||
# 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/"
|
||||
}
|
||||
11
sys-apps/fetchit/metadata.xml
Normal file
11
sys-apps/fetchit/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>theron.york@cloudnuke.org</email>
|
||||
<name>Theron York</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="codeberg">nzuum/fetchit</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user