From bdb9ea031208728b8da1b6b789d1e189c8cb0c39 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Wed, 31 Dec 2025 18:36:04 -0500 Subject: [PATCH] new bblfs: sys-process/btop-1.4.6 --- sys-process/btop-1.4.6.PKGBUILD | 46 +++++++++++ .../btop-1.4.6/cattpuccin-mocha-tokyo.theme | 81 +++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 sys-process/btop-1.4.6.PKGBUILD create mode 100644 sys-process/btop-1.4.6/cattpuccin-mocha-tokyo.theme diff --git a/sys-process/btop-1.4.6.PKGBUILD b/sys-process/btop-1.4.6.PKGBUILD new file mode 100644 index 0000000..073762b --- /dev/null +++ b/sys-process/btop-1.4.6.PKGBUILD @@ -0,0 +1,46 @@ +pkgname=btop +pkgver=1.4.6 +pkgdesc='A monitor of system resources, bpytop ported to C++' +arch=(x86_64) +homepage="https://github.com/aristocratos/$pkgname" +license=(Apache-2.0) +depends=(gcc glibc) +makedepends=(lowdown + rocm-smi) +optdepends=('rocm-smi: AMD GPU support') +sources=("${pkgname}-${pkgver}.tar.gz" + "cattpuccin-mocha-tokyo.theme" +) +urls=("$homepage/archive/v$pkgver/${sources[0]}" + "cattpuccin-mocha-tokyo.theme" +) +md5sums=("6e7c9b1fe7e1894d1e66c5557e1abf62" + "bd080ccc052dab89ec3d7d6c644035db" +) + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 + cp -v ${filedir}/${sources[1]} themes/ +} + +src_build() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/usr + -B build + -DBTOP_GPU=true + -DBTOP_RSMI_STATIC=false + -DBTOP_STATIC=false + # These settings can be controlled in make.conf CFLAGS/CXXFLAGS + -DBTOP_LTO=false + ) + cmake "${mycmakeargs[@]}" + cmake --build build +} + +src_install() { + DESTDIR="$pkgdir" cmake --install build + make DESTDIR="$pkgdir" PREFIX=/usr setcap +} + + +# vim:ft=sh syn=sh et sw=2: diff --git a/sys-process/btop-1.4.6/cattpuccin-mocha-tokyo.theme b/sys-process/btop-1.4.6/cattpuccin-mocha-tokyo.theme new file mode 100644 index 0000000..fde98b9 --- /dev/null +++ b/sys-process/btop-1.4.6/cattpuccin-mocha-tokyo.theme @@ -0,0 +1,81 @@ +# Theme: tokyo-night +# By: Pascal Jaeger + +# Main bg +theme[main_bg]="#1e1e2e" + +# Main text color +theme[main_fg]="#cdd6f4" + +# Title color for boxes +theme[title]="#cdd6f4" + +# Highlight color for keyboard shortcuts +theme[hi_fg]="#89dceb" + +# Background color of selected item in processes box +theme[selected_bg]="#313244" + +# Foreground color of selected item in processes box +theme[selected_fg]="#89b4fa" + +# Color of inactive/disabled text +theme[inactive_fg]="#6c7086" + +# Misc colors for processes box including mini cpu graphs, details memory graph and details status text +theme[proc_misc]="#89dceb" + +# Cpu box outline color +theme[cpu_box]="#6c7086" + +# Memory/disks box outline color +theme[mem_box]="#6c7086" + +# Net up/down box outline color +theme[net_box]="#6c7086" + +# Processes box outline color +theme[proc_box]="#6c7086" + +# Box divider line and small boxes line color +theme[div_line]="#6c7086" + +# Temperature graph colors +theme[temp_start]="#a6e3a1" +theme[temp_mid]="#f9e2af" +theme[temp_end]="#f38ba8" + +# CPU graph colors +theme[cpu_start]="#a6e3a1" +theme[cpu_mid]="#f9e2af" +theme[cpu_end]="#f38ba8" + +# Mem/Disk free meter +theme[free_start]="#a6e3a1" +theme[free_mid]="#f9e2af" +theme[free_end]="#f38ba8" + +# Mem/Disk cached meter +theme[cached_start]="#a6e3a1" +theme[cached_mid]="#f9e2af" +theme[cached_end]="#f38ba8" + +# Mem/Disk available meter +theme[available_start]="#a6e3a1" +theme[available_mid]="#f9e2af" +theme[available_end]="#f38ba8" + +# Mem/Disk used meter +theme[used_start]="#a6e3a1" +theme[used_mid]="#f9e2af" +theme[used_end]="#f38ba8" + +# Download graph colors +theme[download_start]="#a6e3a1" +theme[download_mid]="#f9e2af" +theme[download_end]="#f38ba8" + +# Upload graph colors +theme[upload_start]="#a6e3a1" +theme[upload_mid]="#f9e2af" +theme[upload_end]="#f38ba8"