community/plasma-mobile: add missing udev rules for flashlight support

This commit is contained in:
Bart Ribbers 2024-03-04 22:01:24 +01:00
parent ec9a7106b6
commit 01d2848a02
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,2 @@
# Allow everyone to set brightness of flashlight (Required for plasma-mobile flashlightplugin)
SUBSYSTEMS=="leds", KERNEL=="*:flash|*:torch", RUN+="/bin/chmod 666 %S%p/brightness"

View File

@ -5,7 +5,7 @@
# group=kde-plasma
pkgname=plasma-mobile
pkgver=6.0.0
pkgrel=0
pkgrel=1
pkgdesc="Modules providing phone functionality for Plasma"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
@ -73,7 +73,9 @@ case "$pkgver" in
*) _rel=stable;;
esac
_repo_url="https://invent.kde.org/plasma/plasma-mobile.git"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-mobile-$pkgver.tar.xz"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-mobile-$pkgver.tar.xz
99-flashlight.rules
"
build() {
cmake -B build -G Ninja \
@ -89,8 +91,11 @@ check() {
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$srcdir"/99-flashlight.rules -t "$pkgdir"/usr/lib/udev/rules.d/
}
sha512sums="
5a459a58fcb8ec7c070dec1ca3e519d248239b5c6c6416288717560b2641e14a1e2d1c371bb6d7623b14637641403ffccb3fa351ceeaebfc877903ba4f04e2ea plasma-mobile-6.0.0.tar.xz
4badc25cbb7dc84d6af54cff5f3c09dcc37da86b7e930bdcab6d75f8dd90ef0dd9c8a3837ab696b1f4de9cad82d5e64ddd44904640a92e910a8f45524542be95 99-flashlight.rules
"