# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
pkgname=device-volla-mimameid
pkgdesc="Volla Phone 22"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	mkbootimg
	postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
	$pkgname-kernel-downstream:kernel_downstream
	$pkgname-kernel-mainline:kernel_mainline
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

kernel_downstream() {
	pkgdesc="Downstream kernel"
	depends="linux-volla-mimameid msm-fb-refresher"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

kernel_mainline() {
	pkgdesc="Close to mainline kernel, heavily work in progress"
	depends="linux-postmarketos-mediatek-mt6768"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

sha512sums="
c0c9d466253b17d7af8be38b8541b7fb363ba0ac51cf06232c940e61c5a653f2f663869f6b89015cc33f14b46fb4304d5d3cfa89554254684bd98786642883e4  deviceinfo
"
