pmaports/device/testing/device-fairphone-fp5/APKBUILD
Luca Weiss e971cdcb15
device-fairphone-fp5: Various improvements and feature bringup (MR 4456)
* Add kernel modules for display to modules-initfs
* Add GPU firmware and dependency for Vulkan
* Add qbootctl to mark the current A/B slot as successful
* Add bootmac to set the Bluetooth MAC address on boot

[ci:skip-build]: already built successfully in CI
2023-10-09 07:01:03 +02:00

73 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-fairphone-fp5
pkgdesc="Fairphone 5"
pkgver=0.3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
bootmac
linux-postmarketos-qcom-sc7280
make-dynpart-mappings
mesa-vulkan-freedreno
mkbootimg
postmarketos-base
postmarketos-update-kernel
qbootctl
qbootctl-openrc
swclock-offset
"
makedepends="devicepkg-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
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-adreno
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
firmware-qcom-adreno-a660
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
165ae7e1dbb5fb709e2f7b457dafa5df5b755c1199ea0f011b7e519ab49bc676ddeff92a3152629125e66d3dbbe5a70384364191000a1fdf860977e2ed43de54 modules-initfs
"