app-misc/afetch - 2.2.0 (guru)

Search

Install

Install this version:

emerge -a =app-misc/afetch-2.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-misc/afetch-2.2.0

Or alternatively:

emerge --autounmask-write -a =app-misc/afetch-2.2.0

Package Information

Description:
Simple system info written in C
Homepage:
https://github.com/13-CF/afetch/
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
2.2.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit savedconfig

DESCRIPTION="Simple system info written in C"
HOMEPAGE="https://github.com/13-CF/afetch/"
SRC_URI="https://github.com/13-CF/afetch/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="savedconfig"

src_prepare() {
	default
	sed -e 's/-O2//' \
		-e 's/-Wextra//' \
		-e 's/CFLAGS =/CFLAGS +=/' \
		-e 's/LDFLAGS =/LDFLAGS +=/' -i Makefile || die

	restore_config src/config.h
}

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
	save_config src/config.h
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-misc/afetch | euse -E <flag> -p app-misc/afetch | euse -D <flag> -p app-misc/afetch

Global/Standard Flags

Inherited Eclasses

Manifest for 2.2.0

Type File Size Source URLs
DIST afetch-2.2.0.tar.gz 81913 bytes https://github.com/13-CF/afetch/archive/refs/tags/V2.2.0.tar.gz