motorola-thea: 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 2025-12-10 17:18:49 -05:00 committed by The Friendly Merge Bot
parent 511d5eb432
commit 165a7ef85e
No known key found for this signature in database

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-thea
pkgver=3
pkgrel=0
pkgrel=1
pkgdesc="Motorola Moto G 2014"
url="https://postmarketos.org"
arch="armv7"
@ -15,7 +15,10 @@ depends="
"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-udev
"
source="deviceinfo 90-android-touch-dev.rules profile.sh"
options="!check !archcheck"
@ -26,7 +29,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
install -Dm644 "$srcdir"/profile.sh \
"$pkgdir"/etc/profile.d/00-$pkgname.sh
}