blob: a4012715b0773d1c04ae107ea09b66fa5fa52618 (
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
33
34
35
36
37
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
require github [ user=clbr tag=v${PV} ]
export_exlib_phases src_configure src_prepare src_install
SLOT=0
MYOPTIONS=""
SUMMARY="Utility to view Radeon GPU utilization"
LICENCES="GPL-3"
DEPENDENCIES="
build+run:
sys-libs/ncurses
x11-dri/libdrm
x11-libs/libpciaccess
x11-libs/libxcb
"
radeontop_src_prepare() {
edo sed -e "s/pkg-config/${PKG_CONFIG}/g" -i "${WORK}"/Makefile
}
radeontop_src_configure() {
export amdgpu=1
export xcb=1
export plain=1
}
radeontop_src_install() {
default
local prefixed_dir="${IMAGE}/usr/$(exhost --target)"
edo mkdir -p "${prefixed_dir}"
edo mv "${IMAGE}"/usr/sbin "${prefixed_dir}"/bin
edo mv "${IMAGE}"/usr/lib "${prefixed_dir}"/
}
|