Skip to content

Commit a1490ed

Browse files
committed
addpkg(main/btop): 1.4.5
1 parent 4a4b65e commit a1490ed

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

packages/btop/CMakeLists.txt.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index bca0f39..1e00db6 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -76,7 +76,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
6+
target_sources(btop PRIVATE src/openbsd/btop_collect.cpp src/openbsd/sysctlbyname.cpp)
7+
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
8+
target_sources(btop PRIVATE src/netbsd/btop_collect.cpp)
9+
-elseif(LINUX)
10+
+elseif((LINUX) OR (CMAKE_SYSTEM_NAME STREQUAL "Android"))
11+
target_sources(btop PRIVATE src/linux/btop_collect.cpp)
12+
if(BTOP_GPU)
13+
add_subdirectory(src/linux/intel_gpu_top)

packages/btop/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
TERMUX_PKG_HOMEPAGE=https://github.com/aristocratos/btop
2+
TERMUX_PKG_DESCRIPTION="Resource monitor that shows usage and stats for processor, memory, disks, network and processes."
3+
TERMUX_PKG_LICENSE="Apache-2.0"
4+
TERMUX_PKG_MAINTAINER="@termux"
5+
TERMUX_PKG_VERSION="1.4.5"
6+
TERMUX_PKG_SRCURL=https://github.com/aristocratos/btop/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
7+
TERMUX_PKG_SHA256=0ffe03d3e26a3e9bbfd5375adf34934137757994f297d6b699a46edd43c3fc02
8+
TERMUX_PKG_BUILD_DEPENDS="aosp-libs, lowdown"
9+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
10+
-DBTOP_LTO=OFF
11+
-DBTOP_GPU=OFF
12+
-DLOWDOWN_EXECUTABLE="${TERMUX_PKG_TMPDIR}/bin/lowdown"
13+
"
14+
TERMUX_PKG_AUTO_UPDATE=true
15+
16+
termux_step_pre_configure() {
17+
[[ "$TERMUX_ON_DEVICE_BUILD" == "false" ]] && termux_setup_proot
18+
mkdir "${TERMUX_PKG_TMPDIR}/bin"
19+
printf '%s\ntermux-proot-run %s "$@"\n' \
20+
"#!/bin/sh" \
21+
"${TERMUX_PREFIX}/bin/lowdown" \
22+
> "${TERMUX_PKG_TMPDIR}/bin/lowdown"
23+
chmod +x "${TERMUX_PKG_TMPDIR}/bin/lowdown"
24+
25+
PATH="${TERMUX_PKG_TMPDIR}/bin:$PATH"
26+
}

0 commit comments

Comments
 (0)