Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8197>
73 lines
1.9 KiB
Bash
73 lines
1.9 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
maintainer="Alec Su (AlecJY) <ae40515@yahoo.com.tw>"
|
|
pkgname=device-xiaomi-natrium
|
|
pkgdesc="Xiaomi Mi 5s Plus"
|
|
pkgver=9
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
firmware-xiaomi-natrium
|
|
linux-firmware-ath10k
|
|
linux-firmware-qca
|
|
linux-postmarketos-qcom-msm8996
|
|
mesa-egl
|
|
mkbootimg
|
|
postmarketos-base
|
|
soc-qcom-msm8996
|
|
soc-qcom-msm8996-nonfree-firmware
|
|
soc-qcom-msm8996-ucm
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="
|
|
$pkgname-openrc
|
|
$pkgname-phosh
|
|
"
|
|
install="$pkgname-openrc.post-install"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
pointercal
|
|
phoc.ini
|
|
30-gpu-firmware.files
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -D -m644 "$srcdir"/pointercal \
|
|
"$pkgdir"/etc/pointercal
|
|
|
|
install -Dm644 "$srcdir/30-gpu-firmware.files" \
|
|
-t "$pkgdir/usr/share/mkinitfs/files"
|
|
}
|
|
|
|
openrc() {
|
|
default_openrc
|
|
|
|
mkdir -p "$subpkgdir"
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
|
|
replaces="phosh"
|
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/usr/share/phosh/phoc.ini
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
aca5508c9a258dde80cd4a09683089b0d021546b106396eacce9a4504e8e99e161a6bc5e4c5cf9c6ae89288f685bda347a4c434351defcf0517d18683ab1ae22 deviceinfo
|
|
4f420e410ed05d617659e8ec1d86b9d3b1514caabe1836cde06d6950f4d92e2b96ad9df7d91061019513aa23971d24a3c394e36abd4f3fbc4a9db5420037c2c4 modules-initfs
|
|
dfae5737f007e57ccd1d0c44001a46c5db754ef65c9bd0519ffafda0e5d6d50c4cca3fb4745da84581f790f984f8d98abe47c5598b708e1c9720ff4c83b7e6b4 pointercal
|
|
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
|
4babc3e499cbc3fab555d3d939b34e763d31ee8e36f3766f3b0bc8c6d1e2ec67f119b87e4a5bc898ad6881b9da98c06f184a567dc9f96b08857ee185ff05f6ae 30-gpu-firmware.files
|
|
"
|