# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-payton
pkgdesc="Motorola Moto X4"
pkgver=0.1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-motorola-payton mkbootimg msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo directfbrc fb.modes"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
	install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
}


sha512sums="
66a3899cfe21927e6241a3a2fa3998fa9eb54ffbad4fc4b536487f20b6e8b8dfc852d02a33bbc350bfc1300732f9f664644b64781e525c37d4b9a62d819a4099  deviceinfo
3db3ec596e159be926ea2b5b2496c18e9bc7be24a64a232a56c89a0c9ee710aa2efb2b6fa9fc08efa34759e8242e6c629d08a4ce688ec8aa125830717c191515  directfbrc
fed190ea8ef9470e30046bcd421b475684b88a03912730813d6364bf669dc01b1e311ceb68c3ae7fdd0b3a7ce75ff24ee546ecd0be40119ecf79a097870613ea  fb.modes
"
