# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-oneplus-lemonade
pkgdesc="OnePlus 9"
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
"
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="
7fe44c1338490fa43e94c4ab52f8e38ce36dfefd93d28d65ef7ebfc1fd4607b58efa6b90be232835741e17973a4e7dc665d79fa03bfbeed2f6b6e7189148dc3f  deviceinfo
4499514da07ccc2622ba095df569a8c64bbba4d512b740d40dffd0284406766ece55296cc50d461afe08ec16816a9a8ed087de9a27b393edb42e5cf058dfd6e9  kernel-cmdline.conf
"
