# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr 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}"/ }