hal-light/brillo - 1.4.13 (nadevko)

Search

Install

Install this version:

emerge -a =hal-light/brillo-1.4.13

Package Information

Description:
Control the brightness of backlight and keyboard LED devices
Homepage:
https://gitlab.com/cameronnemo/brillo
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.4.13 8 amd64 0
View Raw Ebuild
# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=8
BRILLO_GROUP=video

inherit udev

DESCRIPTION='Control the brightness of backlight and keyboard LED devices'
HOMEPAGE=https://gitlab.com/cameronnemo/brillo
SRC_URI="https://gitlab.com/cameronnemo/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}"/${PN}-v${PV}

LICENSE=GPL-3
SLOT=0
KEYWORDS=amd64

IUSE='apparmor man policykit setgid +udev'

RDEPEND="
	policykit? ( sys-auth/polkit )
	udev? ( virtual/udev acct-group/${BRILLO_GROUP} )
"
BDEPEND='man? ( dev-go/go-md2man )'

PATCHES=( "${FILESDIR}" )

src_compile() {
	mkdir -p build || die
	emake build/brillo $(usev man build/brillo.1)
}

src_install() {
	emake DESTDIR="${D}" UDEVRULESDIR="$(get_udevdir)" \
		GROUP=${BRILLO_GROUP} \
		install.bin$(usev setgid .setgid) \
		$(usev apparmor install.apparmor) \
		$(usev man install.man) \
		$(usev policykit install.polkit) \
		$(usev udev install.udev)

	einstalldocs
	newinitd "${FILESDIR}"/brillo.initd brillo
}

pkg_postinst() {
	use udev && udev_reload

	elog 'To make brightness persistent across reboots with OpenRC, enable the service:'
	elog '  rc-update add brillo boot'
	elog '  rc-service brillo start'
}

pkg_postrm() {
	use udev && udev_reload
}

USE Flags

Manage flags for this package: euse -i <flag> -p hal-light/brillo | euse -E <flag> -p hal-light/brillo | euse -D <flag> -p hal-light/brillo

Global/Standard Flags

man
udev
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

	policykit? ( sys-auth/polkit )
	udev? ( virtual/udev acct-group/video )

BDEPEND

man? ( dev-go/go-md2man )

Manifest for 1.4.13

Type File Size Source URLs
DIST brillo-1.4.13.tar.bz2 24955 bytes https://gitlab.com/cameronnemo/brillo/-/archive/v1.4.13/brillo-v1.4.13.tar.bz2