Signed-off-by: Philipp Zabel <[email protected]>
---
 rules/bpytop.in   | 11 +++++++++
 rules/bpytop.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 rules/bpytop.in
 create mode 100644 rules/bpytop.make

diff --git a/rules/bpytop.in b/rules/bpytop.in
new file mode 100644
index 000000000000..821fbceffc86
--- /dev/null
+++ b/rules/bpytop.in
@@ -0,0 +1,11 @@
+## SECTION=shell_and_console
+
+config BPYTOP
+       tristate
+       select PYTHON3
+       select PYTHON3_DISTUTILS                if RUNTIME
+       select PYTHON3_PSUTIL                   if RUNTIME
+       prompt "bpytop"
+       help
+         Resource monitor that shows usage and stats for processor, memory,
+         disks, network and processes.
diff --git a/rules/bpytop.make b/rules/bpytop.make
new file mode 100644
index 000000000000..a7c37ac75f97
--- /dev/null
+++ b/rules/bpytop.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BPYTOP) += bpytop
+
+#
+# Paths and names
+#
+BPYTOP_VERSION := 1.0.26
+BPYTOP_MD5     := 0f726e1e5c9830a1a346182abdc259a0
+BPYTOP         := bpytop-$(BPYTOP_VERSION)
+BPYTOP_SUFFIX  := tar.gz
+BPYTOP_URL     := 
https://github.com/aristocratos/bpytop/archive/v$(BPYTOP_VERSION).$(BPYTOP_SUFFIX)
+BPYTOP_SOURCE  := $(SRCDIR)/$(BPYTOP).$(BPYTOP_SUFFIX)
+BPYTOP_DIR     := $(BUILDDIR)/$(BPYTOP)
+BPYTOP_LICENSE := Apache-2.0
+BPYTOP_LICENSE_FILES := \
+       file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+BYPTOP_CONF_TOOL       := NO
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+BPYTOP_INSTALL_OPT     := PREFIX=/usr install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/bpytop.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, bpytop)
+       @$(call install_fixup, bpytop, PRIORITY, optional)
+       @$(call install_fixup, bpytop, SECTION, base)
+       @$(call install_fixup, bpytop, AUTHOR, "Philipp Zabel 
<[email protected]>")
+       @$(call install_fixup, bpytop, DESCRIPTION, missing)
+
+       @$(call install_copy, bpytop, 0, 0, 0755, -, /usr/bin/bpytop)
+       @$(call install_tree, bpytop, 0, 0, -, /usr/share/bpytop)
+
+       @$(call install_finish, bpytop)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to