pmaports/device/testing/device-fairphone-fp5/APKBUILD
Luca Weiss dfc672e76e
device-fairphone-fp5: use header_version=2 for new kernel (MR 4409)
Without qcom,board-id and qcom,msm-id we need to use header version 2,
otherwise the device doesn't boot.

[ci:skip-build]: Already built successfully in CI
2023-09-21 17:44:10 +02:00

66 lines
1.6 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-fairphone-fp5
pkgdesc="Fairphone 5"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-sc7280
make-dynpart-mappings
mkbootimg
postmarketos-base
postmarketos-update-kernel
swclock-offset
"
makedepends="devicepkg-dev"
source="
deviceinfo
gtk.css
modules-initfs
"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Firmware for Modem, WiFi, etc."
depends="
firmware-fairphone-fp5-adsp
firmware-fairphone-fp5-bluetooth
firmware-fairphone-fp5-cdsp
firmware-fairphone-fp5-ipa
firmware-fairphone-fp5-modem
firmware-fairphone-fp5-venus
firmware-fairphone-fp5-wpss
linux-firmware-ath11k
msm-modem
pd-mapper
tqftpserv
"
install="$subpkgname.post-install"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/gtk.css \
"$subpkgdir"/etc/skel/.config/gtk-3.0/gtk.css
}
sha512sums="
c7cdcaf8e9a07ca8c1e01f527b4151f27b7bac0800b9b0fe0bfa09890ebbd0152ead81b78852be25cd5ccb14ea3777aca0e786d72c586e39e6c2b2731e9661bc deviceinfo
71cd1ffa1ae56874a0751ef9eb91f4bccbe2009c1287b2116f3c09e99e70e436ed3d3ef27684dd318c8ff140cdccd7428580788659b7c6b2a3d8df6948149171 gtk.css
c535c211a6d594605e0e2af3536e457b4b6a4b833f26efda4dbd514597d080393a621338c274173f4633eadefc0c2ae830f7ceaa4cbe56a1e6715ff825af18f1 modules-initfs
"