2021-03-27 14:00:00 +00:00
|
|
|
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
2020-09-13 15:29:23 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2021-03-27 14:00:00 +00:00
|
|
|
|
2020-09-13 15:29:23 +00:00
|
|
|
pkgname=device-xiaomi-scorpio
|
|
|
|
pkgdesc="Xiaomi Mi Note 2"
|
2021-11-07 09:33:14 +00:00
|
|
|
pkgver=3
|
2023-09-19 16:16:35 +00:00
|
|
|
pkgrel=9
|
2020-09-13 15:29:23 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
2021-03-27 14:00:00 +00:00
|
|
|
linux-postmarketos-qcom-msm8996
|
2021-11-07 09:33:14 +00:00
|
|
|
mesa-egl
|
2020-09-13 15:29:23 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2021-12-03 05:39:43 +00:00
|
|
|
postmarketos-update-kernel
|
2021-03-27 14:00:00 +00:00
|
|
|
soc-qcom-msm8996
|
|
|
|
soc-qcom-msm8996-ucm
|
2020-09-13 15:29:23 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-02-28 18:17:41 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-camera
|
|
|
|
$pkgname-phosh
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2020-09-13 15:29:23 +00:00
|
|
|
|
2021-03-27 14:00:00 +00:00
|
|
|
source="
|
2022-06-03 16:52:03 +00:00
|
|
|
30-gpu-firmware.files
|
2021-03-27 14:00:00 +00:00
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-06-03 16:52:03 +00:00
|
|
|
gpu-nobin.sh
|
2021-05-22 12:54:54 +00:00
|
|
|
pointercal
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2021-03-27 14:00:00 +00:00
|
|
|
"
|
2020-09-13 15:29:23 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2021-05-22 12:54:54 +00:00
|
|
|
|
|
|
|
install -D -m644 "$srcdir"/pointercal \
|
|
|
|
"$pkgdir"/etc/pointercal
|
2022-06-03 16:52:03 +00:00
|
|
|
|
|
|
|
install -D -m644 "$srcdir"/gpu-nobin.sh \
|
|
|
|
"$pkgdir"/etc/profile.d/gpu-nobin.sh
|
2020-09-13 15:29:23 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:00:00 +00:00
|
|
|
nonfree_firmware() {
|
2021-05-22 12:54:54 +00:00
|
|
|
pkgdesc="GPU/Modem/Venus/ADSP/SLPI/WiFi/Bluetooth Firmware"
|
2021-03-27 14:00:00 +00:00
|
|
|
depends="
|
|
|
|
firmware-xiaomi-scorpio
|
|
|
|
linux-firmware-ath10k
|
|
|
|
linux-firmware-qca
|
|
|
|
soc-qcom-msm8996-nonfree-firmware
|
|
|
|
"
|
2021-06-28 04:23:04 +00:00
|
|
|
install="$subpkgname.post-install"
|
2021-03-27 14:00:00 +00:00
|
|
|
mkdir "$subpkgdir"
|
2021-11-07 09:33:14 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir/30-gpu-firmware.files" -t \
|
2023-02-18 23:33:07 +00:00
|
|
|
"$subpkgdir/usr/share/mkinitfs/files"
|
2021-03-27 14:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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-03-27 14:00:00 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 18:17:41 +00:00
|
|
|
camera() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-default-camera"
|
|
|
|
depends="megapixels"
|
|
|
|
mkdir -p "$subpkgdir"
|
|
|
|
}
|
2021-05-22 12:54:54 +00:00
|
|
|
|
|
|
|
sha512sums="
|
2023-01-01 08:38:19 +00:00
|
|
|
b033e7357c4ef91ba84f6f715e96e67637c2631d4746402f8a92333ba8974bbee7736a7bc081b0f84a84dc5b555a7db4dbb4f14f628bbfc42cbfa501c4f0ed36 30-gpu-firmware.files
|
2023-08-02 17:06:01 +00:00
|
|
|
561b327a42004532fb0db9750f27aeb5aa6d97478666d0c63a939fc21c36cc2a81b41129588ff27e186fd3cdd168c1f6a85eb5ad44862ae8e1d5dc3d2311ae2e deviceinfo
|
|
|
|
93518206c01baa4ef8216dfdbbc5df27c61ea7f17d11c1167a074f4324411b195be2fb29124430a537b1e724067806060f53a2d769a89a4928c33eae93279847 modules-initfs
|
2022-06-03 16:52:03 +00:00
|
|
|
ecd40b8f9bc17f383c52aa96ad23ceec41be75a4500d5e7a67f2f59875bf9f72eb35686a0b6e4949b45fd589c5da409d1212c52172fef94de2d1655b28c339b4 gpu-nobin.sh
|
2021-05-22 12:54:54 +00:00
|
|
|
e9ee9c1404b41ba15eafff3f728ff6e0e78dc17e9a88483fca92db1aa3efe0e4d5bf26142e533c4ff12b1bf8ce04ccabb7ca0f93aaea586d5b30910282aad237 pointercal
|
2022-04-03 09:04:48 +00:00
|
|
|
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
2021-05-22 12:54:54 +00:00
|
|
|
"
|