asdcontrol
This commit is contained in:
5 files changed
+6
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
pkgbase = asdcontrol
|
||||
pkgdesc = Control brightness on Apple Displays connected via USB-C
|
||||
epoch = 1
|
||||
pkgver = 0.6.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/omakasui/asdcontrol
|
||||
install = asdcontrol.install
|
||||
arch = x86_64
|
||||
license = GPL2
|
||||
makedepends = make
|
||||
makedepends = gcc
|
||||
depends = glibc
|
||||
depends = gcc-libs
|
||||
source = asdcontrol-0.6.0.tar.gz::https://github.com/omakasui/asdcontrol/archive/refs/tags/v0.6.0.tar.gz
|
||||
sha256sums = 3112a6d5fc51a204c96ef9d27187577c6efc80b952e37a77969efbd0124e81d3
|
||||
|
||||
pkgname = asdcontrol
|
||||
@@ -0,0 +1,29 @@
|
||||
# Build directories
|
||||
src/
|
||||
pkg/
|
||||
|
||||
# Package files
|
||||
*.pkg.tar.zst
|
||||
*.pkg.tar.xz
|
||||
*.pkg.tar.gz
|
||||
*.pkg.tar
|
||||
|
||||
# Source archives
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tar.bz2
|
||||
*.zip
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
# Temporary files
|
||||
*~
|
||||
*.swp
|
||||
*.swo
|
||||
.DS_Store
|
||||
|
||||
# Git clones
|
||||
asdcontrol/
|
||||
!.omarchy/
|
||||
!.omarchy/**
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"source": "local"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
post_install() {
|
||||
echo ":: asdcontrol has been installed"
|
||||
echo ":: You can now use 'sudo asdcontrol' to control Apple Display brightness"
|
||||
echo ":: Passwordless sudo has been configured for /usr/bin/asdcontrol"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
echo ":: Sudoers configuration for asdcontrol has been removed"
|
||||
}
|
||||
Reference in new issue
Block a user