2021-07-19 21:22:30 +00:00
|
|
|
# Maintainer: Raffaele Tranquillini (cunidev) <raffaele.tranquillini@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
|
|
|
|
pkgname=device-xiaomi-gemini
|
|
|
|
pkgdesc="Xiaomi Mi 5"
|
|
|
|
pkgver=1
|
2023-09-19 16:16:35 +00:00
|
|
|
pkgrel=6
|
2021-07-19 21:22:30 +00:00
|
|
|
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
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2021-07-19 21:22:30 +00:00
|
|
|
pointercal
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2021-07-19 21:22:30 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
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"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2021-07-19 21:22:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
37261b37d5bfc2bed2d1b0bffc33c0d4c806111700ac1ff27e353b2898c15c14dcd35541f82075e083693cd994c6db3e696a14770d048477d8b87685b2362f49 deviceinfo
|
|
|
|
4f420e410ed05d617659e8ec1d86b9d3b1514caabe1836cde06d6950f4d92e2b96ad9df7d91061019513aa23971d24a3c394e36abd4f3fbc4a9db5420037c2c4 modules-initfs
|
2021-07-19 21:22:30 +00:00
|
|
|
e9ee9c1404b41ba15eafff3f728ff6e0e78dc17e9a88483fca92db1aa3efe0e4d5bf26142e533c4ff12b1bf8ce04ccabb7ca0f93aaea586d5b30910282aad237 pointercal
|
2022-04-03 09:04:48 +00:00
|
|
|
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
2021-07-19 21:22:30 +00:00
|
|
|
"
|