54 lines
1.5 KiB
Text
54 lines
1.5 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
pkgname=device-oneplus-enchilada
|
|
pkgdesc="OnePlus 6"
|
|
pkgver=6
|
|
pkgrel=0
|
|
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
|
|
phoc.ini
|
|
q6voiced.conf
|
|
"
|
|
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 soc-qcom-sdm845-nonfree-firmware"
|
|
mkdir "$subpkgdir"
|
|
|
|
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
}
|
|
|
|
sha512sums="
|
|
41059dc04ba4d155fedef3e470bfd6ea993d89418a13e25b8284dc98a4c90c61ae00101b9912161acaf4ac8b346d8efcf63894ce1ddb12224f19b9be69e0de87 deviceinfo
|
|
65f74d29ab318b23f7ac8923a3661f2c4130049273a8c6be234ed2c8e00810b6a1254b54cf0932e42850a6d48f821dcd038900fbb836feeddfab2759afffae38 phoc.ini
|
|
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
|
|
"
|