# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-oneplus-lemonadep
pkgdesc="OnePlus 9 Pro"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-postmarketos-qcom-sm8350
	mkbootimg
	postmarketos-base
	soc-qcom-sm8350
	bootmac
"
makedepends="
	devicepkg-dev
"
source="
	deviceinfo
	kernel-cmdline.conf
"

subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Modem, WiFi, and GPU Firmware"
	depends="firmware-oneplus-lemonade"
	mkdir "$subpkgdir"
}

sha512sums="
540668a2a3cd8dfe2405ad41a21478ebf9f13db12b3b231a5cc630841d9f4c0738be62e87c6f76cb05a6fb35a2f7676e2403aeb9fb34ac61a87351330a0b1a26  deviceinfo
7694cf10b269838e42b0bd10795f6c08c941407c71dddc1ef8beec523739d6a8a8351f9ef764702830f84b65a1015a079532407a202e079516ac2fca483cb088  kernel-cmdline.conf
"
