blob: 570a78dfedb18013e60baffdd8d5e055ddbf1949 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: DonutsDelivery <megusta52@proton.me>
pkgname=auto-brightness-ddcutil
pkgver=1.0.0
pkgrel=3
pkgdesc="Automatic monitor brightness adjustment based on sunrise/sunset times (requires DDC/CI enabled)"
arch=('any')
url="https://github.com/DonutsDelivery/Auto-Brightness"
license=('MIT')
depends=('python' 'python-requests' 'ddcutil')
makedepends=('git')
source=("git+https://github.com/DonutsDelivery/Auto-Brightness.git")
sha256sums=('SKIP')
package() {
cd "$srcdir/Auto-Brightness"
# Install main Python script as executable
install -Dm755 auto_brightness.py "$pkgdir/usr/bin/auto-brightness"
# Install additional Python scripts
install -Dm755 brightness_control.py "$pkgdir/usr/share/auto-brightness/brightness_control.py"
install -Dm755 brightness_gui.py "$pkgdir/usr/share/auto-brightness/brightness_gui.py"
install -Dm755 brightness_panel.py "$pkgdir/usr/share/auto-brightness/brightness_panel.py"
install -Dm755 brightness_tray.py "$pkgdir/usr/share/auto-brightness/brightness_tray.py"
install -Dm755 update_config.py "$pkgdir/usr/share/auto-brightness/update_config.py"
install -Dm755 plasmoid_helper.sh "$pkgdir/usr/share/auto-brightness/plasmoid_helper.sh"
# Install default config file
install -Dm644 config.json "$pkgdir/etc/auto-brightness/config.json"
# Install systemd user service
install -Dm644 auto-brightness.service "$pkgdir/usr/lib/systemd/user/auto-brightness.service"
}
|