summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 11 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 242275e1ffa..605230ac0c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,35 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=sysmon-git
-pkgver=0.9.r21.g56cb167
+pkgver=1.0.r0.g2f1b9f5
pkgrel=1
pkgdesc="Graphical system monitor. Similar to windows task manager."
arch=('any')
url="https://github.com/MatthiasSchinzel/sysmon"
-license=('GPL')
+license=('GPL3')
depends=('python-pyqtgraph' 'python-pyqt5' 'wireless_tools')
+makedepends=('python-setuptools')
optdepends=('nvidia-utils: NVIDIA GPU utilization and clock speed')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/MatthiasSchinzel/sysmon.git'
- "${pkgname%-git}.desktop"
- "${pkgname%-git}.sh")
+ "${pkgname%-git}.desktop")
sha256sums=('SKIP'
- '3f692c5a3cb16bcc2fa95c7b18392d45e4c08d575fcab8590679efcdb56b70ac'
- '4695bfb1a3305725b3f575bcba9fac88aa1c1c828439d3bb2008c7f008938a32')
+ 'cc538ea1e439738db3fedf55ef0ab825e27669b8501f99ac58be7245f974bc7e')
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"
+build() {
+ cd "$srcdir/${pkgname%-git}/src"
+ python setup.py build
}
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}"
+ cd "$srcdir/${pkgname%-git}/src"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t \
"$pkgdir/usr/share/applications"
}