pmaports/device/community/device-oneplus-fajita/APKBUILD

48 lines
1.2 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Caleb Connolly <caleb@connolly.tech>
pkgname=device-oneplus-fajita
pkgdesc="OnePlus 6T"
pkgver=3
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-sdm845
mkbootimg
postmarketos-base
postmarketos-update-kernel
soc-qcom-sdm845
soc-qcom-sdm845-ucm
"
makedepends="devicepkg-dev"
source="deviceinfo rootston.ini"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Modem, WiFi and GPU Firmware, also needed for osk-sdl"
depends="firmware-oneplus-sdm845 firmware-oneplus-sdm845-initramfs"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
sha512sums="
394ab79b4ec41d20e38114a7872aa0113a7b433d47858bc1a37045b064356e915ffbdd995b53873d8dce22e7f90bc1a2ff8aba85edba78fbe36ef76ae433ee11 deviceinfo
035f97e328ff9f976b082e66b97f76036cdee9825f3022471c7c5d371291cc4b5bd5c18196cd49f4cd9ad6390abe691b506de3b221e3c122433d5620e3b3c4c9 rootston.ini
"