2022-08-02 20:20:43 +00:00
|
|
|
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
|
2020-01-28 10:42:25 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-oneplus-cheeseburger
|
2020-01-28 10:42:25 +00:00
|
|
|
pkgdesc="OnePlus 5"
|
2022-10-12 18:55:09 +00:00
|
|
|
pkgver=4
|
2022-08-02 20:13:28 +00:00
|
|
|
pkgrel=0
|
2020-01-28 10:42:25 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-10-10 22:56:33 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
postmarketos-update-kernel
|
|
|
|
"
|
2020-01-28 10:42:25 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-10-10 22:56:33 +00:00
|
|
|
source="
|
2022-10-05 10:13:59 +00:00
|
|
|
21-oneplus5-ts.rules
|
2021-10-10 22:56:33 +00:00
|
|
|
deviceinfo
|
|
|
|
phoc.ini
|
|
|
|
"
|
|
|
|
subpackages="
|
2022-08-02 20:13:28 +00:00
|
|
|
$pkgname-kernel-alpine:kernel_alpine
|
2021-10-10 22:56:33 +00:00
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
2022-10-05 10:13:59 +00:00
|
|
|
$pkgname-plasma-mobile:plasma_mobile
|
2021-10-10 22:56:33 +00:00
|
|
|
"
|
2020-01-28 10:42:25 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:13:28 +00:00
|
|
|
kernel_alpine() {
|
2022-10-12 18:55:09 +00:00
|
|
|
# FIXME: msm-modem-uim-selection hangs boot for some 20 seconds when installed with non-free FW
|
2022-08-02 20:13:28 +00:00
|
|
|
pkgdesc="Pure mainline kernel, unpatched Alpine linux-edge"
|
|
|
|
depends="linux-edge linux-firmware-none"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-10-10 22:56:33 +00:00
|
|
|
kernel_mainline() {
|
2022-08-02 20:13:28 +00:00
|
|
|
pkgdesc="Close to mainline kernel, plenty of working features and fixes"
|
2022-10-09 13:39:06 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8998 soc-qcom-msm8998"
|
2021-10-10 22:56:33 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2022-08-02 20:20:43 +00:00
|
|
|
pkgdesc="Firmware for GPU, Wi-Fi, Bluetooth etc. (also needed for full disk encryption)"
|
2021-10-10 22:56:33 +00:00
|
|
|
depends="firmware-oneplus-msm8998"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-10-05 10:13:59 +00:00
|
|
|
# some scaling tweaks
|
2021-10-10 22:56:33 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
|
|
}
|
|
|
|
|
2022-10-05 10:13:59 +00:00
|
|
|
plasma_mobile() {
|
|
|
|
install_if="$pkgname postmarketos-ui-plasma-mobile"
|
|
|
|
# fix incorrect 180 degree touchscreen rotation due to PlaMo kwin_wayland bug
|
|
|
|
# https://invent.kde.org/teams/plasma-mobile/issues/-/issues/160
|
|
|
|
install -Dm644 "$srcdir"/21-oneplus5-ts.rules \
|
|
|
|
"$subpkgdir"/etc/udev/rules.d/21-oneplus5-ts.rules
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2022-10-05 10:13:59 +00:00
|
|
|
fcb37390af6f2a0aed381585eeec7d0dd30e0b291d97a6fa433ed4b5d3badb3298709972d382a44f555329f83aabdbb8c8affcfe3933072538c4ac8c3ff9aca8 21-oneplus5-ts.rules
|
2022-10-12 18:55:09 +00:00
|
|
|
2e1a7b6636b3694d14a3aa153998f7477327e2c08ed83753607ec0073764b362f70b54f15e1a9911325bc57bf30c2d1b97647c599eb1638ea14d020f0c4722c6 deviceinfo
|
2021-10-10 22:56:33 +00:00
|
|
|
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|