summaryrefslogtreecommitdiff
path: root/app-misc/bfetch/bfetch-9999.ebuild
blob: 09cc72dbdf0a435ea85c45af41ee835e4550d0ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Ultra-fast system fetch tool written in C"
HOMEPAGE="https://github.com/Mjoyufull/bfetch"
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}"
}

src_install() {
	dobin bfetch
	dodoc README.md
}