2020-01-10 16:35:50 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-06-04 11:42:38 +00:00
|
|
|
pkgname=device-motorola-titan
|
2024-01-11 20:30:37 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=0
|
2017-06-04 11:42:38 +00:00
|
|
|
pkgdesc="Motorola Moto G 2014"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-02-20 00:26:00 +00:00
|
|
|
arch="armv7"
|
2017-06-04 11:37:14 +00:00
|
|
|
license="MIT"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base linux-motorola-titan mkbootimg msm-fb-refresher"
|
2020-01-10 16:35:50 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2017-11-04 22:30:03 +00:00
|
|
|
install="$pkgname.post-install"
|
2024-01-11 20:30:37 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
source="deviceinfo 90-android-touch-dev.rules profile.sh"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-06-04 11:37:14 +00:00
|
|
|
|
2020-01-10 16:35:50 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-06-04 11:37:14 +00:00
|
|
|
package() {
|
2020-01-10 16:35:50 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
|
2017-06-25 22:07:27 +00:00
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/profile.sh \
|
2017-06-26 21:46:37 +00:00
|
|
|
"$pkgdir"/etc/profile.d/00-$pkgname.sh
|
2018-01-04 16:41:27 +00:00
|
|
|
|
|
|
|
# Disable v4l (video4linux), because without the camera firmware
|
|
|
|
# blobs this makes dev hang with the kernel this device uses (#1033)
|
|
|
|
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
|
2017-06-04 11:37:14 +00:00
|
|
|
}
|
2017-10-20 00:07:00 +00:00
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-motorola-titan"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
|
|
|
4698a4cb0f5f9bc083798f18ff1c85c9952868817a085cb2e00c8f64fc44649538a18d6e896aa6b03f2b55bbada097590848be34927f9c1dc9c5acaefece77d1 deviceinfo
|
2020-02-07 17:27:12 +00:00
|
|
|
8406968cd554393ea1e350967c80810d059de2b1d33ea1302e265780c1f0110d64cf15a68c2f374981a88906d0317315e0a71995c85fd5eaf93bb47ed427529c 90-android-touch-dev.rules
|
2017-09-11 15:29:22 +00:00
|
|
|
d04013c17caf77a87ebea167dbe48f7efa9c9d3123c5743d359f3ea8ccc6b268fa021535a4bf8291eb4a352f0c92f6eb527da0db340421f53bc1cc439a453306 profile.sh
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|