summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/app-misc/radeontop/radeontop-1.1.exheres-05
-rw-r--r--packages/app-misc/radeontop/radeontop-scm.exheres-05
-rw-r--r--packages/app-misc/radeontop/radeontop.exlib36
3 files changed, 46 insertions, 0 deletions
diff --git a/packages/app-misc/radeontop/radeontop-1.1.exheres-0 b/packages/app-misc/radeontop/radeontop-1.1.exheres-0
new file mode 100644
index 0000000..06d0e41
--- /dev/null
+++ b/packages/app-misc/radeontop/radeontop-1.1.exheres-0
@@ -0,0 +1,5 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require radeontop
+PLATFORMS="~x86 ~amd64"
diff --git a/packages/app-misc/radeontop/radeontop-scm.exheres-0 b/packages/app-misc/radeontop/radeontop-scm.exheres-0
new file mode 100644
index 0000000..06d0e41
--- /dev/null
+++ b/packages/app-misc/radeontop/radeontop-scm.exheres-0
@@ -0,0 +1,5 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require radeontop
+PLATFORMS="~x86 ~amd64"
diff --git a/packages/app-misc/radeontop/radeontop.exlib b/packages/app-misc/radeontop/radeontop.exlib
new file mode 100644
index 0000000..f8f941b
--- /dev/null
+++ b/packages/app-misc/radeontop/radeontop.exlib
@@ -0,0 +1,36 @@
+# 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} force_git_clone=true ]
+
+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}"/
+}