lenovo-karate: install udev configs under /usr/lib/ and split into $pkgname-udev subpackage

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7544>
This commit is contained in:
Aster Boese
2026-01-10 18:23:19 +00:00
committed by The Friendly Merge Bot
parent 6285df1bff
commit fa65e4331c
@@ -2,7 +2,7 @@
pkgname=device-lenovo-karate
pkgdesc="Lenovo K6 Power"
pkgver=2
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -10,7 +10,10 @@ options="!check !archcheck"
depends="postmarketos-base linux-lenovo-karate mkbootimg mdss-fb-init-hack"
makedepends="devicepkg-dev"
source="deviceinfo 90-android-touch-dev.rules"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-udev
"
build() {
devicepkg_build $startdir $pkgname
@@ -18,8 +21,8 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm755 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/usr/lib/udev/rules.d/90-android-touch-dev.rules
}
nonfree_firmware() {