t2m-flame: install udev configs under /usr/lib/ and split into $pkgname-udev subpackage

Signed-off-by: Aster Boese <asterboese@mailbox.org>

[ci:ignore-count]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7542>
This commit is contained in:
Aster Boese 2025-12-10 14:01:51 -05:00 committed by The Friendly Merge Bot
parent 245630a06d
commit 6dbd933393
No known key found for this signature in database

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-t2m-flame
pkgver=2
pkgrel=0
pkgrel=1
pkgdesc="Mozilla Flame"
url="https://postmarketos.org"
arch="armhf"
@ -10,7 +10,10 @@ depends="postmarketos-base linux-t2m-flame mkbootimg"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
source="deviceinfo 90-android-touch-dev.rules"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-udev
"
options="!check !archcheck"
build() {
@ -20,7 +23,7 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
"$pkgdir"/usr/lib/udev/rules.d/90-android-touch-dev.rules
}
nonfree_firmware() {