mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
CFLAGS needs to be preserved as upstream assumes compilation with -std=c99. Closes: https://bugs.gentoo.org/945003 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
31 lines
662 B
Bash
31 lines
662 B
Bash
# 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
|
|
}
|