# Maintainer: Raffaele Tranquillini (cunidev) # Reference: pkgname=device-xiaomi-gemini pkgdesc="Xiaomi Mi 5" pkgver=1 pkgrel=3 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends=" linux-postmarketos-qcom-msm8996 mkbootimg postmarketos-base soc-qcom-msm8996 soc-qcom-msm8996-ucm " makedepends="devicepkg-dev" subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh" source=" deviceinfo pointercal phoc.ini " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname install -D -m644 "$srcdir"/pointercal \ "$pkgdir"/etc/pointercal } nonfree_firmware() { pkgdesc="GPU/Modem/Venus/ADSP/SLPI/WiFi/Bluetooth Firmware" depends=" firmware-xiaomi-gemini linux-firmware-ath10k linux-firmware-qca soc-qcom-msm8996-nonfree-firmware " mkdir "$subpkgdir" } phosh() { install_if="$pkgname=$pkgver-r$pkgrel phosh" install -Dm644 "$srcdir"/phoc.ini \ "$subpkgdir"/etc/phosh/phoc.ini } sha512sums=" ad299d1e1fbdc638347f9acb74a5cbddd87158d7468df093790f02600d65f5d053fec62524a685a37ad69cbf075ecefc3e926a027bd7708b374354163386faa8 deviceinfo e9ee9c1404b41ba15eafff3f728ff6e0e78dc17e9a88483fca92db1aa3efe0e4d5bf26142e533c4ff12b1bf8ce04ccabb7ca0f93aaea586d5b30910282aad237 pointercal 38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini "