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-05-22 12:54:54 +00:00
|
|
|
pkgver=2
|
2021-07-19 19:48:34 +00:00
|
|
|
pkgrel=3
|
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
|
2020-09-13 15:29:23 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
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"
|
2021-03-27 14:00:00 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
|
2020-09-13 15:29:23 +00:00
|
|
|
|
2021-03-27 14:00:00 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2021-05-22 12:54:54 +00:00
|
|
|
pointercal
|
2021-03-27 14:00:00 +00:00
|
|
|
rootston.ini
|
|
|
|
"
|
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
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
|
|
}
|
|
|
|
|
2021-05-22 12:54:54 +00:00
|
|
|
|
|
|
|
sha512sums="
|
2021-07-19 19:48:34 +00:00
|
|
|
045783a46a0bdfd19a81897773076aee9f1f7ab058b6130469d544a2c9c87cd50f7ccd65141ebafc49a6b1db096897fb932310b0ad2b6b572b7075a68e17b65b deviceinfo
|
2021-05-22 12:54:54 +00:00
|
|
|
e9ee9c1404b41ba15eafff3f728ff6e0e78dc17e9a88483fca92db1aa3efe0e4d5bf26142e533c4ff12b1bf8ce04ccabb7ca0f93aaea586d5b30910282aad237 pointercal
|
|
|
|
035f97e328ff9f976b082e66b97f76036cdee9825f3022471c7c5d371291cc4b5bd5c18196cd49f4cd9ad6390abe691b506de3b221e3c122433d5620e3b3c4c9 rootston.ini
|
|
|
|
"
|