-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
26 lines (24 loc) · 1.22 KB
/
PKGBUILD
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
# Maintainer: Thomas Rijpstra <thomas at fourlights dot nl>
pkgname=auto-brightness
pkgver=1.0.3
pkgrel=1
pkgdesc="A script to automatically adjust screen brightness based on ambient light"
arch=('any')
url="https://github.com/trijpstra-fourlights/auto-brightness"
license=('MIT')
depends=('bash' 'awk' 'iio-sensor-proxy')
source=("auto-brightness.sh"
"auto-brightness.service"
"auto-brightness.conf"
"wait-for-als-sensor.sh")
sha256sums=('6c3f60a736cda1d9fe363253e4126ff408999e6479f8a41704f1c1ed268acf04'
'0cb8db3700b878e82c42cdd2e95893d12dc926f106742d6bccfe1a7f395f2800'
'4a2f4e4a331df6c2e3cda53b0cb38161fd5cff153253166d740d0c86b8d444a8'
'e208630a23360de4e336649c6bc0970b3c3dfecf5b906d3e334530dd279be9c6')
package() {
install -Dm755 "$srcdir/auto-brightness.sh" "$pkgdir/usr/bin/auto-brightness"
install -Dm755 "$srcdir/wait-for-als-sensor.sh" "$pkgdir/usr/lib/auto-brightness/wait-for-als-sensor.sh"
install -Dm644 "$srcdir/auto-brightness.service" "$pkgdir/usr/lib/systemd/system/auto-brightness.service"
install -Dm644 "$srcdir/auto-brightness.conf" "$pkgdir/usr/share/auto-brightness/examples/auto-brightness.conf"
install -d "$pkgdir/etc/conf.d/auto-brightness.d"
}