# Reference: pkgname=device-motorola-surnia pkgdesc="Motorola Moto E (2nd Gen)" pkgver=0.1 pkgrel=8 url="https://postmarketos.org" license="MIT" arch="armhf" options="!check !archcheck" depends="postmarketos-base linux-motorola-surnia mkbootimg mesa-dri-swrast" makedepends="devicepkg-dev" source="deviceinfo" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware-modem:nonfree_firmware_modem " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname } 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" } sha512sums=" ddd2e60a826ab5e252f5b4a40c400c08662f28ffd909a06d6ad3e7f9470291a0d2f032fe4da98ecb549efbf261b359365ee0be11edc9eb75c7e48c2c1d4b779a deviceinfo "