mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de>
40 lines
764 B
Bash
40 lines
764 B
Bash
# Copyright 2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="A monitor of resources"
|
|
HOMEPAGE="https://github.com/aristocratos/btop"
|
|
SRC_URI="https://github.com/aristocratos/btop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
>=sys-devel/gcc-10
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
# btop installs README.md to /usr/share/btop by default
|
|
sed -i 's/^.*cp -p README.md.*$//' Makefile
|
|
}
|
|
|
|
src_compile() {
|
|
# Disable btop optimization flags, since we have our flags in CXXFLAGS
|
|
emake \
|
|
OPTFLAGS=""
|
|
}
|
|
|
|
src_install() {
|
|
emake \
|
|
PREFIX="${EPREFIX}/usr" \
|
|
DESTDIR="${D}" \
|
|
install
|
|
|
|
dodoc README.md CHANGELOG.md
|
|
}
|