asdcontrol

This commit is contained in:
Ryan Hughes committed 2026-05-08 01:04:50 -04:00
1 parent d1b13fe9b9
commit fb1174198e
5 files changed
+6 -1

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# Maintainer: Ryan Hughes <ryan@omarchy.org>
pkgname=asdcontrol
epoch=1
pkgver=0.6.0
pkgrel=1
pkgdesc="Control brightness on Apple Displays connected via USB-C"
arch=('x86_64')
url="https://github.com/omakasui/asdcontrol"
license=('GPL2')
options=('!debug')
depends=('glibc' 'gcc-libs')
makedepends=('make' 'gcc')
source=("$pkgname-$pkgver.tar.gz::https://github.com/omakasui/asdcontrol/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('3112a6d5fc51a204c96ef9d27187577c6efc80b952e37a77969efbd0124e81d3')
install=asdcontrol.install
build() {
cd "$srcdir/asdcontrol-$pkgver"
make
}
package() {
cd "$srcdir/asdcontrol-$pkgver"
# Install the binary
install -Dm755 asdcontrol "$pkgdir/usr/bin/asdcontrol"
# Install the sudoers file for passwordless execution
install -dm750 "$pkgdir/etc/sudoers.d"
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/asdcontrol" > "$pkgdir/etc/sudoers.d/asdcontrol"
chmod 440 "$pkgdir/etc/sudoers.d/asdcontrol"
}