summaryrefslogtreecommitdiffstats
path: root/bin-utils
diff options
context:
space:
mode:
authorVlad Glagolev2021-10-05 00:26:00 +0000
committerVlad Glagolev2021-10-05 00:26:00 +0000
commit2febcfca315318d2ce9f8d9afdc7b0b898903f8c (patch)
tree3e1daf1abe3607d32888453415596e1237a094f0 /bin-utils
parent0bfd5a4e8cfe7ea8841dbb3104ce65350351f01e (diff)
btop++-bin: new spell, resource monitor
Diffstat (limited to 'bin-utils')
-rwxr-xr-xbin-utils/btop++-bin/BUILD1
-rwxr-xr-xbin-utils/btop++-bin/CONFIGURE1
-rwxr-xr-xbin-utils/btop++-bin/DETAILS22
-rw-r--r--bin-utils/btop++-bin/HISTORY3
-rwxr-xr-xbin-utils/btop++-bin/INSTALL9
-rwxr-xr-xbin-utils/btop++-bin/PRE_BUILD4
6 files changed, 40 insertions, 0 deletions
diff --git a/bin-utils/btop++-bin/BUILD b/bin-utils/btop++-bin/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-utils/btop++-bin/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-utils/btop++-bin/CONFIGURE b/bin-utils/btop++-bin/CONFIGURE
new file mode 100755
index 0000000..bb9b963
--- /dev/null
+++ b/bin-utils/btop++-bin/CONFIGURE
@@ -0,0 +1 @@
+config_query BTOP_SUID_ROOT "Install ${SPELL} setuid root?" n
diff --git a/bin-utils/btop++-bin/DETAILS b/bin-utils/btop++-bin/DETAILS
new file mode 100755
index 0000000..c03363a
--- /dev/null
+++ b/bin-utils/btop++-bin/DETAILS
@@ -0,0 +1,22 @@
+ SPELL=btop++-bin
+ SPELLX=${SPELL/++-bin/}
+ VERSION=1.0.13
+if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" || "${SMGL_COMPAT_ARCHS[1]}" == "em64t" ]]; then
+ ARCH=x86_64
+ SOURCE_HASH=sha512:d69323d9af540d40da3636af9951ab2c039a7da2248170c8039c541031bca9a2a8340e63105add0e28301a827026769ea6d949a87453d4289272b6826e36f249
+else
+ ARCH=i686
+ SOURCE_HASH=sha512:fe063e2acb38d01b2361ddb25dcfd14b52e9cf2c384095e4fd16d5b1b2f2326eb60092d1cf4f076921f193d4c94367f7673d0c6169068915d2b1d64d3c2665ea
+fi
+ SOURCE=${SPELLX}-${VERSION}-linux-${ARCH}.tbz
+ SOURCE_URL[0]=https://github.com/aristocratos/${SPELLX}/releases/download/v${VERSION}/${SOURCE}
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELLX}-${VERSION}"
+ GATHER_DOCS=off
+ WEB_SITE=https://github.com/aristocratos/btop
+ LICENSE[0]=APACHE
+ ENTERED=20211004
+ KEYWORDS=""
+ SHORT="resource monitor"
+cat << EOF
+This is a binary, statically-linked version of btop++."
+EOF
diff --git a/bin-utils/btop++-bin/HISTORY b/bin-utils/btop++-bin/HISTORY
new file mode 100644
index 0000000..8e0a896
--- /dev/null
+++ b/bin-utils/btop++-bin/HISTORY
@@ -0,0 +1,3 @@
+2021-10-04 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, {PRE_,}BUILD, INSTALL, CONFIGURE: created spell, version
+ 1.0.13
diff --git a/bin-utils/btop++-bin/INSTALL b/bin-utils/btop++-bin/INSTALL
new file mode 100755
index 0000000..b0c3d43
--- /dev/null
+++ b/bin-utils/btop++-bin/INSTALL
@@ -0,0 +1,9 @@
+local target="install" &&
+
+if [[ ${BTOP_SUID_ROOT} == y ]]; then
+ target="${target} setuid"
+fi &&
+
+make_single &&
+make DESTDIR="${INSTALL_ROOT}" PREFIX=/usr ${target} &&
+make_normal
diff --git a/bin-utils/btop++-bin/PRE_BUILD b/bin-utils/btop++-bin/PRE_BUILD
new file mode 100755
index 0000000..202d4de
--- /dev/null
+++ b/bin-utils/btop++-bin/PRE_BUILD
@@ -0,0 +1,4 @@
+mk_source_dir "${SOURCE_DIRECTORY}" &&
+cd "${SOURCE_DIRECTORY}" &&
+
+unpack_file