update stable
This commit is contained in:
1 parent
cefc5a0789
commit
88aeabbd77
131 files changed
+3936
No files matched your search
@@ -0,0 +1,16 @@
|
||||
pkgbase = asdcontrol
|
||||
pkgdesc = Control brightness on Apple Displays connected via USB-C
|
||||
pkgver = 0.23.0ee8bd5
|
||||
pkgrel = 1
|
||||
url = https://github.com/nikosdion/asdcontrol
|
||||
install = asdcontrol.install
|
||||
arch = x86_64
|
||||
license = GPL2
|
||||
makedepends = make
|
||||
makedepends = gcc
|
||||
depends = glibc
|
||||
depends = gcc-libs
|
||||
source = asdcontrol-0.23.0ee8bd5.tar.gz::https://github.com/nikosdion/asdcontrol/archive/0ee8bd5.tar.gz
|
||||
sha256sums = 1381ba2e048ec73aa0f8c32e47370460efd31b31f7558a7b922a3c4ebef00ebc
|
||||
|
||||
pkgname = asdcontrol
|
||||
@@ -0,0 +1,27 @@
|
||||
# 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/
|
||||
@@ -0,0 +1,31 @@
|
||||
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
||||
pkgname=asdcontrol
|
||||
pkgver=0.23.0ee8bd5
|
||||
pkgrel=1
|
||||
pkgdesc="Control brightness on Apple Displays connected via USB-C"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/nikosdion/asdcontrol"
|
||||
license=('GPL2')
|
||||
options=('!debug')
|
||||
depends=('glibc' 'gcc-libs')
|
||||
makedepends=('make' 'gcc')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/nikosdion/asdcontrol/archive/0ee8bd5.tar.gz")
|
||||
sha256sums=('1381ba2e048ec73aa0f8c32e47370460efd31b31f7558a7b922a3c4ebef00ebc')
|
||||
install=asdcontrol.install
|
||||
|
||||
build() {
|
||||
cd "$srcdir/asdcontrol-0ee8bd576d4e93513027d713e688988cb0d827ef"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/asdcontrol-0ee8bd576d4e93513027d713e688988cb0d827ef"
|
||||
|
||||
# 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