pmaports/device/testing/device-xiaomi-tissot/APKBUILD

46 lines
1.3 KiB
Text

# Maintainer: Danila Tikhonov (JIaxyga) <JIaxyga@protonmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-tissot
pkgdesc="Xiaomi Mi A1"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916 linux-postmarketos-qcom-msm8953"
makedepends="devicepkg-dev"
source="deviceinfo phoc.ini"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-modem $pkgname-phosh"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Modem, WiFi, BT, ADSP, Venus and GPU Firmware, also needed for osk-sdl"
depends="firmware-xiaomi-tissot"
mkdir "$subpkgdir"
}
modem() {
depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection"
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/phoc.ini -t \
"$subpkgdir"/etc/phosh
}
sha512sums="
b638618a0aed9f99135a166b0883c5a30c72e842126a0db88f7eb9cadb30fe1a4308ed64f7756df3e77a73fdd69c56d19fee67190aedc7fa26087894d4627439 deviceinfo
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
"