summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-10-09 15:05:31 -0600
committerMark Wagie2020-10-09 15:05:31 -0600
commit16ae2a30090960a8b5bd77a7e368868596a9d756 (patch)
tree73485df4b4341c8213ea18a65cd3ea6cfc6f5a96
downloadaur-16ae2a30090960a8b5bd77a7e368868596a9d756.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD35
-rwxr-xr-xsysmon.desktop10
-rw-r--r--sysmon.sh3
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..af35d52d587
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = sysmon-git
+ pkgdesc = Graphical system monitor. Similar to windows task manager.
+ pkgver = 0.9.r19.g3085ac8
+ pkgrel = 1
+ url = https://github.com/MatthiasSchinzel/sysmon
+ arch = any
+ license = none
+ depends = python-pyqtgraph
+ depends = python-pyqt5
+ depends = wireless_tools
+ provides = sysmon
+ conflicts = sysmon
+ source = git+https://github.com/MatthiasSchinzel/sysmon.git
+ source = sysmon.desktop
+ source = sysmon.sh
+ sha256sums = SKIP
+ sha256sums = 3f692c5a3cb16bcc2fa95c7b18392d45e4c08d575fcab8590679efcdb56b70ac
+ sha256sums = 4695bfb1a3305725b3f575bcba9fac88aa1c1c828439d3bb2008c7f008938a32
+
+pkgname = sysmon-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74a6e296d20
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
+pkgname=sysmon-git
+pkgver=0.9.r19.g3085ac8
+pkgrel=1
+pkgdesc="Graphical system monitor. Similar to windows task manager."
+arch=('any')
+url="https://github.com/MatthiasSchinzel/sysmon"
+license=('none')
+depends=('python-pyqtgraph' 'python-pyqt5' 'wireless_tools')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/MatthiasSchinzel/sysmon.git'
+ "${pkgname%-git}.desktop"
+ "${pkgname%-git}.sh")
+sha256sums=('SKIP'
+ '3f692c5a3cb16bcc2fa95c7b18392d45e4c08d575fcab8590679efcdb56b70ac'
+ '4695bfb1a3305725b3f575bcba9fac88aa1c1c828439d3bb2008c7f008938a32')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ sed -i '1s/^/#!\/usr\/bin\/env python\n/' "src/${pkgname%-git}.py"
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -Dm644 src/{*.py,*.ui} -t "$pkgdir/opt/${pkgname%-git}"
+ install -Dm755 "$srcdir/${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
+ install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t \
+ "$pkgdir/usr/share/applications"
+}
diff --git a/sysmon.desktop b/sysmon.desktop
new file mode 100755
index 00000000000..f57f9cd6440
--- /dev/null
+++ b/sysmon.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Icon=utilities-system-monitor
+Name=SysMonitor
+GenericName=Graphical system monitor
+Exec=python /opt/sysmon/sysmon.py
+Terminal=false
+Hidden=false
+Categories=Utility;
+Comment=Information about CPU, GPU, Memory, HDD/SDD and your network connections
diff --git a/sysmon.sh b/sysmon.sh
new file mode 100644
index 00000000000..649fc231683
--- /dev/null
+++ b/sysmon.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+python /opt/sysmon/sysmon.py