Update to asdcontrol vs asdcontrol-git
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
pkgbase = asdcontrol-git
|
||||
pkgbase = asdcontrol
|
||||
pkgdesc = Control brightness on Apple Displays connected via USB-C
|
||||
pkgver = r23.0ee8bd5
|
||||
pkgver = 0.23.0ee8bd5
|
||||
pkgrel = 1
|
||||
url = https://github.com/nikosdion/asdcontrol
|
||||
install = asdcontrol.install
|
||||
arch = x86_64
|
||||
license = GPL2
|
||||
makedepends = git
|
||||
makedepends = make
|
||||
makedepends = gcc
|
||||
depends = glibc
|
||||
depends = gcc-libs
|
||||
source = git+https://github.com/nikosdion/asdcontrol.git
|
||||
sha256sums = SKIP
|
||||
source = asdcontrol-0.23.0ee8bd5.tar.gz::https://github.com/nikosdion/asdcontrol/archive/0ee8bd5.tar.gz
|
||||
sha256sums = 1381ba2e048ec73aa0f8c32e47370460efd31b31f7558a7b922a3c4ebef00ebc
|
||||
|
||||
pkgname = asdcontrol-git
|
||||
pkgname = asdcontrol
|
||||
@@ -1,33 +1,28 @@
|
||||
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
||||
pkgname=asdcontrol-git
|
||||
pkgver=r23.0ee8bd5
|
||||
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')
|
||||
depends=('glibc' 'gcc-libs')
|
||||
makedepends=('git' 'make' 'gcc')
|
||||
source=("git+https://github.com/nikosdion/asdcontrol.git")
|
||||
sha256sums=('SKIP')
|
||||
makedepends=('make' 'gcc')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/nikosdion/asdcontrol/archive/0ee8bd5.tar.gz")
|
||||
sha256sums=('1381ba2e048ec73aa0f8c32e47370460efd31b31f7558a7b922a3c4ebef00ebc')
|
||||
install=asdcontrol.install
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/asdcontrol"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/asdcontrol"
|
||||
cd "$srcdir/asdcontrol-0ee8bd576d4e93513027d713e688988cb0d827ef"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/asdcontrol"
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user