pmaports/device/community/firmware-xiaomi-scorpio/APKBUILD

37 lines
1 KiB
Text

# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
pkgname=firmware-xiaomi-scorpio
pkgver=3
pkgrel=0
pkgdesc="Firmware for Xiaomi Mi Note 2"
url="https://gitlab.com/Tooniis/firmware-xiaomi-scorpio"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck !tracedeps pmb:cross-native"
_commit="4c7763beb4de1fc4ff0da99e7fd43ea767fac2e7"
source="$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz"
_mbns="
a530_zap.mbn
adsp.mbn
mba.mbn
modem.mbn
slpi.mbn
venus.mbn
"
package() {
cd "$srcdir/$pkgname-$_commit/"
# Install MBNs
for _i in $_mbns; do
install -Dm644 $_i "$pkgdir/lib/firmware/qcom/msm8996/scorpio/$_i"
done
# Install QCA6174 board firmware
install -Dm644 board-2.bin "$pkgdir/lib/firmware/postmarketos/ath10k/QCA6174/hw3.0/board-2.bin"
}
sha512sums="
b8be4f664608f88e8140c7182e855fbf5078d23445bba14cb2242a9ea785678ab88b4584b0dc35d6325693e911bdf3c1b8ff3913414c7a1f2e0eae75692a2e45 firmware-xiaomi-scorpio-4c7763beb4de1fc4ff0da99e7fd43ea767fac2e7.tar.gz
"