pmaports/device/testing/device-oneplus-oneplus3t/APKBUILD

57 lines
1.4 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-oneplus-oneplus3t
pkgdesc="OnePlus 3T"
pkgver=1.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-s6e3fa3:kernel_s6e3fa3
$pkgname-kernel-s6e3fa5:kernel_s6e3fa5
"
depends="
postmarketos-base
mkbootimg
soc-qcom-msm8996
reboot-mode
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="OnePlus 3T nonfree firmware (GPU, modem, sound, camera, sensors, WiFi, bluetooth)"
depends="
firmware-oneplus-oneplus3t
linux-firmware-ath10k
linux-firmware-qca
soc-qcom-msm8996-nonfree-firmware
"
mkdir "$subpkgdir"
}
kernel_s6e3fa3() {
pkgdesc="Samsung S6E3FA3 Panel. To find out which panel your device uses run cat /proc/cmdline in TWRP terminal"
depends="linux-postmarketos-qcom-msm8996"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_s6e3fa5() {
pkgdesc="Samsung S6E3FA5 Panel. To find out which panel your device uses run cat /proc/cmdline in TWRP terminal"
depends="linux-postmarketos-qcom-msm8996"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
cb5d3f287303d509dfa3db9c54a94b1cd49bfc7c113dc16e1caa3889bb78c97bcbe9f6aefab3191853150a5806846ee8ced497c0aed9d2a70faf257068b9cc4b deviceinfo
"