# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer="ky0ko <ky0ko@disroot.org>"
pkgname=device-motorola-def
pkgdesc="Motorola Moto One Hyper"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
depends="postmarketos-base linux-motorola-def mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Nonfree firmware metapackage for Motorola One Hyper"
	depends="firmware-motorola-def"
	mkdir "$subpkgdir"
}


sha512sums="
2c1e6487b1c4dcbcee6a3b0592987516f7a9dcbe1205575f5924c1d3ce217e575a0cd0b8da3616c98ee6255d5addb8f8900e8eaa9143d5a1322bee854bc35c1e  deviceinfo
3906bdcdf77b48757b538e15ca84f8126a147f368fc8d3487c1e8e62f33100c5b875e7ca69327f46c1a02cd173c610bad1721347e891805000c5f4f14823f107  kernel-cmdline.conf
"
