mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/cpu-x: new aport
CPU-X is a system profiling and monitoring application (similar to CPU-Z) https://thetumultuousunicornofdarkness.github.io/CPU-X/
This commit is contained in:
parent
c7b852f1de
commit
8a20468b60
66
testing/cpu-x/APKBUILD
Normal file
66
testing/cpu-x/APKBUILD
Normal file
@ -0,0 +1,66 @@
|
||||
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
||||
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
||||
pkgname=cpu-x
|
||||
pkgver=5.0.2
|
||||
pkgrel=0
|
||||
pkgdesc="CPU-X is a system profiling and monitoring application (similar to CPU-Z)"
|
||||
url="https://thetumultuousunicornofdarkness.github.io/CPU-X/"
|
||||
arch="all"
|
||||
license="GPL-3.0-only"
|
||||
depends="
|
||||
gtkmm3
|
||||
libcpuid
|
||||
ncurses
|
||||
mesa
|
||||
opencl
|
||||
pciutils
|
||||
procps-ng
|
||||
vulkan-loader
|
||||
"
|
||||
makedepends="
|
||||
cmake
|
||||
gtkmm3-dev
|
||||
libcpuid-dev
|
||||
mesa-dev
|
||||
nasm
|
||||
ncurses-dev
|
||||
opencl-dev
|
||||
pciutils-dev
|
||||
procps-ng-dev
|
||||
samurai
|
||||
vulkan-headers
|
||||
"
|
||||
subpackages="$pkgname-lang $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/archive/refs/tags/v$pkgver.tar.gz
|
||||
no-bracktrace.patch
|
||||
"
|
||||
builddir="$srcdir/CPU-X-$pkgver"
|
||||
|
||||
build() {
|
||||
# GLFW disable
|
||||
if [ "$CBUILD" != "$CHOST" ]; then
|
||||
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||
fi
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DWITH_OPENCL=ON \
|
||||
-DWITH_LIBGLFW=OFF \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
$crossopts
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
ninja -C build/ test
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3677207af8ea233a5bc1e435f501f4dffbe555486b048f5b51ac818cb458d52ab7ac94830ab83e992772e339de93464b3d4cd92798b8f49a272fd5292484de7e cpu-x-5.0.2.tar.gz
|
||||
96f0e100a2ca2898b014ca5f52937a2de041743777fbf318e2d3f82240e9fe40106d295c2ce80478e1540ed35c96a98c70acd1549b89daae44f6d9ff88251734 no-bracktrace.patch
|
||||
"
|
||||
41
testing/cpu-x/no-bracktrace.patch
Normal file
41
testing/cpu-x/no-bracktrace.patch
Normal file
@ -0,0 +1,41 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -130,7 +130,6 @@
|
||||
enable_testing()
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
-find_package(Backtrace REQUIRED)
|
||||
find_package(Filesystem REQUIRED)
|
||||
if(WITH_GETTEXT)
|
||||
find_package(Gettext)
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -255,7 +255,6 @@
|
||||
target_link_libraries(${APP_EXEC}
|
||||
${Intl_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
- ${Backtrace_LIBRARIES}
|
||||
std::filesystem
|
||||
|
||||
${GTK3_LIBRARIES}
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
-#include <execinfo.h>
|
||||
#include <getopt.h>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
@@ -370,10 +369,6 @@
|
||||
void *bt[16];
|
||||
std::string::size_type addr_start, addr_end;
|
||||
std::string line, address, line_number;
|
||||
-
|
||||
- /* Get the backtrace */
|
||||
- bt_size = backtrace(bt, 16);
|
||||
- bt_syms = backtrace_symbols(bt, bt_size);
|
||||
|
||||
/* Print the backtrace */
|
||||
Logger::set_verbosity(LOG_ERROR); // disable DEBUG mode for popen_to_str()
|
||||
Loading…
x
Reference in New Issue
Block a user