# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-lg-mako
pkgver=8
pkgrel=0
pkgdesc="Google Nexus 4"
url="https://postmarketos.org"
arch="armv7"
license="MIT"
depends="
	firmware-lg-mako
	mkbootimg
	postmarketos-base
	"
subpackages="
	$pkgname-kernel-next:kernel_next
	$pkgname-kernel-stable:kernel_stable
	$pkgname-kernel-lts:kernel_lts
"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf"
options="!check !archcheck"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

kernel_next() {
	pkgdesc="Unstable next kernel (linux-next)"
	depends="linux-next"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

kernel_stable() {
	pkgdesc="Stable kernel from Alpine Linux (linux-stable)"
	depends="linux-stable"
	provides="$pkgname-kernel-edge=$pkgver-r$pkgrel"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

kernel_lts() {
	pkgdesc="Long term support (LTS) kernel from Alpine Linux (linux-lts)"
	depends="linux-lts"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

sha512sums="
1e8a909232e17607fb7138d4b202783d19d80e6e409dd6a03dcf431b64c4ce36eac23ae27b713e956fa63c1816e6a14204e7fc81ebebc290752a1c0b31c3d4cf  deviceinfo
507db97393639e1a529562135aa79ba3d9468101108379599317aa6bed69202dc4f85d00c357d65b79a380386b4224b17e384ea9f022c2eae5895c7598c01b0a  kernel-cmdline.conf
"
