2018-09-28 13:15:25 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-motorola-surnia
|
2018-09-28 13:15:25 +00:00
|
|
|
pkgdesc="Motorola Moto E (2nd Gen)"
|
|
|
|
pkgver=0.1
|
2021-02-10 16:36:15 +00:00
|
|
|
pkgrel=6
|
2018-09-28 13:15:25 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="armhf"
|
|
|
|
options="!check !archcheck"
|
2018-09-28 13:15:25 +00:00
|
|
|
depends="postmarketos-base linux-motorola-surnia mkbootimg mesa-dri-swrast"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="deviceinfo"
|
|
|
|
|
2021-02-10 16:36:15 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
|
|
|
|
"
|
|
|
|
|
2018-09-28 13:15:25 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2021-02-10 16:36:15 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="GPU/Wi-Fi/Bluetooth/Video(/Modem) firmware"
|
|
|
|
depends="linux-firmware-qcom firmware-motorola-surnia-wcnss firmware-motorola-surnia-venus"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware_modem() {
|
|
|
|
pkgdesc="Modem firmware"
|
|
|
|
depends="firmware-motorola-surnia-modem"
|
|
|
|
install_if="$pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-05-17 13:33:49 +00:00
|
|
|
sha512sums="bcbfe1bb816456915ccbb9faf3ff519c9a9de5a95e105458036b7f6fd9384d391a573f215864b21278c959a22320df08cc206777498126f978676e8129b1a557 deviceinfo"
|