app-misc/bfetch: fix CFLAGS, LDFLAGS, and pre-stripping

Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
Theron York
2026-05-11 12:08:38 -05:00
parent fd3cf5d6ec
commit f370f02455
2 changed files with 21 additions and 3 deletions

View File

@@ -16,6 +16,16 @@ LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
src_prepare() {
default
sed -i \
-e 's|$(CC) $(AGGRESSIVE_FLAGS) -o $(TARGET) $(SOURCE)|$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SOURCE)|' \
Makefile || die "Failed to fix compile line"
# Remove any forced '-s' or strip command entirely, just in case.
sed -i 's/-s //g; s/\bstrip\b/true/g' Makefile || die "Failed to remove stripping"
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}

View File

@@ -12,10 +12,18 @@ EGIT_REPO_URI="https://github.com/Mjoyufull/bfetch.git"
LICENSE="AGPL-3"
SLOT="0"
src_prepare() {
default
sed -i \
-e 's|$(CC) $(AGGRESSIVE_FLAGS) -o $(TARGET) $(SOURCE)|$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SOURCE)|' \
Makefile || die "Failed to fix compile line"
sed -i 's/-s //g; s/\bstrip\b/true/g' Makefile || die "Failed to remove stripping"
}
src_compile() {
emake CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {