Skip to content
Snippets Groups Projects
Verified Commit 8b5cc164 authored by Arnav Singh's avatar Arnav Singh
Browse files

temp/hwtop: new aport

parent 3504b3eb
No related branches found
No related tags found
No related merge requests found
# Maintainer: Arnav Singh <me@arnavion.dev>
pkgname=hwtop
pkgver=0.1.0
pkgrel=0
_commit='e828856279974a08f8b1b334cc61da8118b426b3'
pkgdesc="TUI monitor for CPU usage, thermal and fan sensors, and network usage"
url="https://github.com/Arnavion/hwtop"
arch="all !s390x"
license="AGPL-3.0-only"
makedepends_host="
cargo
make
"
options="!check"
source="$pkgname.tar.gz::https://github.com/Arnavion/hwtop/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
install="hwtop.post-install"
build() {
make
}
package() {
install -D "$builddir/target/release/hwtop" "$pkgdir/usr/bin/hwtop"
install -D "$builddir/target/release/sensord" "$pkgdir/usr/bin/sensord"
install -D "$builddir/sensord/data/openrc/sensord.init" "$pkgdir/etc/init.d/sensord"
install -D "$builddir/sensord/data/sensord.dbus" "$pkgdir/etc/dbus-1/system.d/sensord.conf"
}
sha512sums="
3ddf63b4cf1608bbd859fc7ad7a40b4705fa9a5b181eb02f413130814aee06f1289cc8a13ee999a8e9a35444524490e58e617e0ad29703bf9f4873de89bef0c9 $pkgname.tar.gz
"
#!/bin/sh
addgroup -S sensord 2>/dev/null
adduser -S -D -H -g 'dev.arnavion.sensord' -G sensord -s /sbin/nologin sensord 2>/dev/null 2>/dev/null
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment