pmaports/device/testing/device-fairphone-fp4/APKBUILD

67 lines
1.6 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-fairphone-fp4
pkgdesc="Fairphone 4"
pkgver=0.4
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-sm6350
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="
deviceinfo
gtk.css
phoc.ini
"
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-fp4-adreno
firmware-fairphone-fp4-adsp
firmware-fairphone-fp4-cdsp
firmware-fairphone-fp4-ipa
firmware-fairphone-fp4-modem
firmware-fairphone-fp4-wlan
linux-firmware-ath10k
msm-modem
msm-modem-uim-selection
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
install -Dm644 "$srcdir"/phoc.ini \
"$subpkgdir"/etc/phosh/phoc.ini
}
sha512sums="
d84e25eda52b40a0ca3bcfed79d4f73bfc7b28889d1882a5b78dffe069fdeb54390f0dea800e4ae4aae2011322b410551c204caf4a39fdf42d5faf3869f95556 deviceinfo
25a93dcbe6dbc6cff24f57cbf5539bc475c5fe0f6bf5e8374c7032b9c38a939bef0aa0cde1707afcc16b1ec2d0859c03c6ee92d80d8048d1c6adc6e25178b85f gtk.css
65f74d29ab318b23f7ac8923a3661f2c4130049273a8c6be234ed2c8e00810b6a1254b54cf0932e42850a6d48f821dcd038900fbb836feeddfab2759afffae38 phoc.ini
"