diff --git a/community/plasma-mobile/99-flashlight.rules b/community/plasma-mobile/99-flashlight.rules new file mode 100644 index 00000000000..59e04269c3d --- /dev/null +++ b/community/plasma-mobile/99-flashlight.rules @@ -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" diff --git a/community/plasma-mobile/APKBUILD b/community/plasma-mobile/APKBUILD index 565e602dd9f..54c2733f9b2 100644 --- a/community/plasma-mobile/APKBUILD +++ b/community/plasma-mobile/APKBUILD @@ -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 "