- hypr/apps.lua - hypr/autostart.lua - hypr/envs.lua - hypr/hyprland.lua - hypr/hyprsunset.conf - hypr/input.lua - hypr/looknfeel.lua - hypr/omasettings.lua - hypr/xdph.conf - omarchy/branding/about.txt - omarchy/branding/screensaver.txt - omarchy/extensions/omarchy-menu.jsonc - omarchy/hooks/battery-low.d/play-warning-sound.sample - omarchy/hooks/font-set.d/show-font-notification.sample - omarchy/hooks/post-boot.d/weather.sample - omarchy/hooks/post-update.d/install-voxtype.hook - omarchy/hooks/post-update.d/setup-agent.hook - omarchy/hooks/post-update.d/setup-fingerprint.hook - omarchy/hooks/post-update.d/show-update-notification.sample - omarchy/hooks/pre-refresh-pacman.d/add-custom-repo.sample - omarchy/hooks/theme-set.d/show-theme-notification.sample - omarchy/shell.json - omarchy/shell.toml - omarchy/theme.name - omarchy/themes/azure-glow/README.md - omarchy/themes/azure-glow/alacritty.toml - omarchy/themes/azure-glow/btop.theme - omarchy/themes/azure-glow/hyprland.conf - omarchy/themes/azure-glow/hyprlock.conf - omarchy/themes/azure-glow/icons.theme - … 269 more
52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
# Maintainer: Kristoffer Haugland <stappmus at gmail dot com>
|
|
|
|
pkgname=omarchy-activity-monitor-power-helper
|
|
pkgver=2.1.1
|
|
pkgrel=1
|
|
pkgdesc="Optional root-only native RAPL reader for the Omarchy Activity Monitor plugin"
|
|
arch=('x86_64')
|
|
url="https://github.com/stappmus/omarchy-activity-monitor"
|
|
license=('MIT')
|
|
depends=('gcc-libs' 'glibc' 'sudo')
|
|
makedepends=('gcc' 'make')
|
|
options=('!debug')
|
|
source=(
|
|
'activity-sampler.cpp'
|
|
'Makefile'
|
|
'stappmus-activity-monitor.sudoers'
|
|
'README.md'
|
|
'LICENSE'
|
|
)
|
|
sha256sums=(
|
|
'bc8463aaac0e75dcea5c36597d5031ab28630d078a438ca87a9044a422ee026c'
|
|
'2ea69385047c3a1d1893378e2866a464cba7ae28040c0add8a3eaa80f94700a3'
|
|
'e248f015e89bc7f3df4714e7d1e0248c4ac9cc4b4642dda6aa428741b6c4f2ca'
|
|
'e02f364d97fd1c7ef95bb94d607c857ae5052961cdd0c8ac9b24ba2626ca1480'
|
|
'dd56ead2d3379b1d8298bbd1b905188b21894c46312ea4186b2afde9b03b3184'
|
|
)
|
|
|
|
build() {
|
|
make activity-sampler
|
|
}
|
|
|
|
check() {
|
|
[[ $(./activity-sampler --version) == 'activity-sampler 2.1.1' ]]
|
|
grep -Fxq \
|
|
'%wheel ALL=(root) NOPASSWD: /usr/lib/stappmus-activity-monitor/activity-sampler --activity-process-power-reader' \
|
|
stappmus-activity-monitor.sudoers
|
|
if command -v visudo >/dev/null 2>&1; then
|
|
visudo -cf stappmus-activity-monitor.sudoers >/dev/null
|
|
fi
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 activity-sampler \
|
|
"$pkgdir/usr/lib/stappmus-activity-monitor/activity-sampler"
|
|
install -Dm440 stappmus-activity-monitor.sudoers \
|
|
"$pkgdir/etc/sudoers.d/stappmus-activity-monitor"
|
|
install -Dm644 README.md \
|
|
"$pkgdir/usr/share/doc/$pkgname/README.md"
|
|
install -Dm644 LICENSE \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|