# Reference: pkgname=device-huawei-y635 pkgdesc="Huawei Y635" pkgver=1 pkgrel=1 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916" makedepends="devicepkg-dev" source="deviceinfo pointercal phoc.ini" subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh" build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname install -D -m644 "$srcdir"/pointercal -t \ "$pkgdir"/etc } nonfree_firmware() { pkgdesc="GPU/WiFi/BT/Video firmware" # msm-firmware-loader not needed because modem is not supported yet depends="firmware-qcom-adreno-a300 firmware-qcom-msm8916-wcnss firmware-huawei-y635-wcnss-nv firmware-qcom-msm8916-venus" mkdir "$subpkgdir" } phosh() { install_if="$pkgname postmarketos-ui-phosh" install -Dm644 "$srcdir"/phoc.ini -t \ "$subpkgdir"/etc/phosh } sha512sums=" bce88abfe86ceb72f98f127d4827c281cc735301659e34ee56407cce25f222e90ad8b2709848d209e71e5ec7b820e9750bb8d34dd9d6fb8b28c65dbce37bf445 deviceinfo 4d43e2c8facedbf5ba98c072e8fc20197a15acb06918a02bb753b48df356be1d4cafc0383968aac2dda50d240dc8cb038370da1fd37d807a9cb832e873de2b85 pointercal f3667b914bb955be9e97db31dc7ed4a7c5d0c369be9549d587bb7208e270590c0c3fa36a0dd997d6f8305c5c9afb3b906423af6ca8724e806f995e61226cfc83 phoc.ini "