mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
community/plasma-mobile: add missing udev rules for flashlight support
This commit is contained in:
parent
ec9a7106b6
commit
01d2848a02
2
community/plasma-mobile/99-flashlight.rules
Normal file
2
community/plasma-mobile/99-flashlight.rules
Normal 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"
|
||||
@ -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
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user