pmaports/device/testing/device-oneplus-dumpling/APKBUILD
Jami Kettunen 6f556380df
oneplus-dumpling: move downstream pieces to unmaintained (MR 3336)
It can still be chosen as 'oneplus-dumpling-downstream' in
pmbootstrap init.
2022-08-06 16:42:34 +01:00

57 lines
1.4 KiB
Text

# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-oneplus-dumpling
pkgdesc="OnePlus 5T"
pkgver=2
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
mkbootimg
postmarketos-base
postmarketos-update-kernel
"
makedepends="devicepkg-dev"
source="
deviceinfo
phoc.ini
"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_mainline() {
pkgdesc="Close to mainline kernel"
# NOTE: soc-qcom-sdm845 is also applicable to msm8998
depends="linux-postmarketos-qcom-msm8998 soc-qcom-sdm845"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="Firmware for GPU, Wi-Fi, Bluetooth etc. (also needed for full disk encryption)"
depends="firmware-oneplus-msm8998"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname postmarketos-ui-phosh"
install -Dm644 "$srcdir"/phoc.ini \
"$subpkgdir"/etc/phosh/phoc.ini
}
sha512sums="
db12a9f71dbd384bf5d190a16091b29a15fcb1ec2f9a333e5f464588cacd2feb8e532daed9d9780ee208c7bb15c3cd3f79668ec3e7bc63561043d7812c347f14 deviceinfo
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
"