diff options
| author | kj-sh604 | 2025-05-28 14:29:20 -0400 |
|---|---|---|
| committer | kj-sh604 | 2025-05-28 14:29:20 -0400 |
| commit | 2a32fc7b3ccec61b8669b0f0efa06aa92de0035d (patch) | |
| tree | 479e16468cc09ba9cda9fa847572eef9d2e7c7f1 | |
| parent | 1637874d709b15532ce9531c75adc293c49fcfdc (diff) | |
feat: add `acpilight-kj_sh604`
| -rw-r--r-- | acpilight-kj_sh604/.SRCINFO | 17 | ||||
| -rw-r--r-- | acpilight-kj_sh604/PKGBUILD | 23 | ||||
| -rw-r--r-- | acpilight-kj_sh604/acpilight.install | 7 |
3 files changed, 47 insertions, 0 deletions
diff --git a/acpilight-kj_sh604/.SRCINFO b/acpilight-kj_sh604/.SRCINFO new file mode 100644 index 0000000..ba8b59f --- /dev/null +++ b/acpilight-kj_sh604/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = acpilight-kj_sh604 + pkgdesc = A backward-compatible xbacklight replacement based on ACPI + pkgver = 1.2 + pkgrel = 3 + url = https://github.com/kj-sh604/acpilight + install = acpilight.install + arch = any + license = GPL-3.0-only + makedepends = git + depends = python + provides = xorg-xbacklight + conflicts = xorg-xbacklight + conflicts = acpilight + source = acpilight::git+https://github.com/kj-sh604/acpilight.git#commit=1d892d600a00aece87c6c5588bce93721c898acb + sha256sums = b5db8ddffd7df5b314618c77edf17f2cc611636efee62fd31afb0e3d9a546c06 + +pkgname = acpilight-kj_sh604 diff --git a/acpilight-kj_sh604/PKGBUILD b/acpilight-kj_sh604/PKGBUILD new file mode 100644 index 0000000..e25a0d7 --- /dev/null +++ b/acpilight-kj_sh604/PKGBUILD @@ -0,0 +1,23 @@ +pkgname=acpilight-kj_sh604 +pkgver=1.2 +pkgrel=3 +_commit='1d892d600a00aece87c6c5588bce93721c898acb' +pkgdesc="A backward-compatible xbacklight replacement based on ACPI" +arch=('any') +url="https://github.com/kj-sh604/${pkgname%-kj_sh604}" +license=('GPL-3.0-only') +depends=('python') +makedepends=('git') +provides=('xorg-xbacklight') +conflicts=('xorg-xbacklight' 'acpilight') +source=("${pkgname%-kj_sh604}::git+${url}.git#commit=${_commit}") +install="${pkgname%-kj_sh604}.install" +sha256sums=('b5db8ddffd7df5b314618c77edf17f2cc611636efee62fd31afb0e3d9a546c06') + +package() { + cd "${pkgname%-kj_sh604}" + install -vDm0755 xbacklight "${pkgdir}/usr/bin/xbacklight" + install -vDm0644 xbacklight.1 "${pkgdir}/usr/share/man/man1/xbacklight.1" + install -vDm0644 90-backlight.rules "${pkgdir}/usr/lib/udev/rules.d/90-backlight.rules" + install -vDm0644 README.rst NEWS.rst -t "${pkgdir}/usr/share/doc/${pkgname%-kj_sh604}" +} diff --git a/acpilight-kj_sh604/acpilight.install b/acpilight-kj_sh604/acpilight.install new file mode 100644 index 0000000..726cf19 --- /dev/null +++ b/acpilight-kj_sh604/acpilight.install @@ -0,0 +1,7 @@ +post_install() { + cat << EOF + The installed udev rules expect your user to be in the video group to modify + the relevant files in the /sys hierarchy. +EOF +} + |
